Used to unlock the held mutex earlier than destruction.
Definition at line 599 of file QThread.h. 00600 { 00601 if((flags & AcceptNullMutex) && !mutex) return; 00602 if(flags & IsLocked) 00603 { 00604 if(flags & IsRWMutex) 00605 rwmutex->unlock(!!(flags & IsRWMutexWrite)); 00606 else if(flags & IsShrdMutex) 00607 { 00608 if(flags & UnlockAndRelock) shrdmutex->lock(); else shrdmutex->unlock(); 00609 } 00610 else 00611 { 00612 if(flags & UnlockAndRelock) mutex->lock(); else mutex->unlock(); 00613 } 00614 flags&=~IsLocked; 00615 } 00616 }
|