QMUTEX_INLINEP void FX::QShrdMemMutex::lock (  ) 

Locks the shared memory mutex.

Definition at line 367 of file int_QMutexImpl.h.

References FX::FXProcess::getMsCount(), FX::FXAtomicInt::swapI(), and FX::QThread::yield().

00368 {
00369     FXuint start=!timeout ? 0 : FXProcess::getMsCount();
00370     while(lockvar.swapI(1) && (!timeout || FXProcess::getMsCount()-start<timeout-1))
00371 #ifndef FX_SMPBUILD
00372         QThread::yield()
00373 #endif
00374         ;
00375 }


(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