FXFORCEINLINE FX::QMtxHold::QMtxHold ( const QMutex m,
FXuint  _flags = LockAndUnlock 
) [inline]

Constructs an instance holding the lock to mutex m.

Definition at line 548 of file QThread.h.

00549         : flags(_flags), locklost(false)
00550     {
00551         mutex=const_cast<QMutex *>(m);
00552         if((flags & AcceptNullMutex) && !mutex) return;
00553         if(flags & UnlockAndRelock) mutex->unlock(); else mutex->lock();
00554         flags|=IsLocked;
00555     }


(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