FXFORCEINLINE void FX::QMtxHold::unlock (  )  [inline]

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     }


(C) 2002-2009 Niall Douglas. Some parts (C) to assorted authors.
Generated on Fri Nov 20 18:37:45 2009 for TnFOX by doxygen v1.4.7