pWaitRelease in wrong place

waitRelease==false indicates that pThread
has not be delete'd
This commit is contained in:
Michael Davidsaver
2016-03-16 17:43:52 -04:00
parent 4e312b9f64
commit 6b9bfb09a5

View File

@@ -104,12 +104,12 @@ extern "C" void epicsThreadCallEntryPoint ( void * pPvt )
}
if ( ! waitRelease ) {
epicsGuard < epicsMutex > guard ( pThread->mutex );
pThread->pWaitReleaseFlag = NULL;
pThread->terminated = true;
pThread->exitEvent.signal ();
// once the terminated flag is set and we release the lock
// then the "this" pointer must not be touched again
}
pThread->pWaitReleaseFlag = NULL;
}
bool epicsThread::beginWait () throw ()