FXFORCEINLINE FX::QMtxHold::QMtxHold ( const QRWMutex m,
bool  write = true,
FXuint  _flags = LockAndUnlock 
) [inline]

Constructs and instance holding the lock to read/write mutex m.

Definition at line 565 of file QThread.h.

00566         : flags(_flags|IsRWMutex|(write ? IsRWMutexWrite : 0)), locklost(false)
00567     {
00568         rwmutex=const_cast<QRWMutex *>(m);
00569         if((flags & AcceptNullMutex) && !rwmutex) return;
00570         locklost=rwmutex->lock(!!(flags & IsRWMutexWrite));
00571         flags|=IsLocked;
00572     }


(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