- attempt to see if this corrects tomreyns compile error: ==6454==ERROR: AddressSanitizer: heap-use-after-free

This commit is contained in:
SoftCoder 2017-10-07 10:42:21 -07:00
parent 59be04ab6a
commit b928bbbb40
1 changed files with 2 additions and 2 deletions

View File

@ -209,8 +209,8 @@ void BaseThread::setQuitStatus(bool value) {
bool BaseThread::getQuitStatus() {
//bool retval = false;
static string mutexOwnerId = CODE_AT_LINE;
MutexSafeWrapper safeMutex(mutexQuit,mutexOwnerId);
//static string mutexOwnerId = CODE_AT_LINE;
MutexSafeWrapper safeMutex(mutexQuit,CODE_AT_LINE);
//mutexQuit.setOwnerId(mutexOwnerId);
bool retval = quit;
safeMutex.ReleaseLock();