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 }
|