mirror of
https://github.com/glest/glest-source.git
synced 2025-08-11 19:04:00 +02:00
- attempt to see if this corrects tomreyns compile error: ==6454==ERROR: AddressSanitizer: heap-use-after-free
This commit is contained in:
@@ -209,8 +209,8 @@ void BaseThread::setQuitStatus(bool value) {
|
|||||||
|
|
||||||
bool BaseThread::getQuitStatus() {
|
bool BaseThread::getQuitStatus() {
|
||||||
//bool retval = false;
|
//bool retval = false;
|
||||||
static string mutexOwnerId = CODE_AT_LINE;
|
//static string mutexOwnerId = CODE_AT_LINE;
|
||||||
MutexSafeWrapper safeMutex(mutexQuit,mutexOwnerId);
|
MutexSafeWrapper safeMutex(mutexQuit,CODE_AT_LINE);
|
||||||
//mutexQuit.setOwnerId(mutexOwnerId);
|
//mutexQuit.setOwnerId(mutexOwnerId);
|
||||||
bool retval = quit;
|
bool retval = quit;
|
||||||
safeMutex.ReleaseLock();
|
safeMutex.ReleaseLock();
|
||||||
|
Reference in New Issue
Block a user