[Igarden-commit] CommonSource/yaaf/Libraries/yaaf_core/sources XGLockObject.cpp, 1.1, 1.2
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2007-02-22 02:25:33
|
Update of /cvsroot/igarden/CommonSource/yaaf/Libraries/yaaf_core/sources In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv15516 Modified Files: XGLockObject.cpp Log Message: Win32 changes Index: XGLockObject.cpp =================================================================== RCS file: /cvsroot/igarden/CommonSource/yaaf/Libraries/yaaf_core/sources/XGLockObject.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** XGLockObject.cpp 1 Oct 2006 19:19:17 -0000 1.1 --- XGLockObject.cpp 22 Feb 2007 02:25:32 -0000 1.2 *************** *** 3,6 **** --- 3,8 ---- * Lock object. This is basically a "shared" semaphore which permits * a "shared" lock and an "exclusive" lock. + Some contributions by: + je...@re... */ *************** *** 318,322 **** ReleaseMutex(fMutex); ! WaitForSingleObject(fEvent,100); // Just in case of race condition WaitForSingleObject(fMutex,INFINITE); --- 320,324 ---- ReleaseMutex(fMutex); ! // WaitForSingleObject(fEvent,100); // Just in case of race condition WaitForSingleObject(fMutex,INFINITE); *************** *** 326,330 **** fLock = true; ! SetEvent(fEvent); ReleaseMutex(fMutex); #endif --- 328,332 ---- fLock = true; ! // SetEvent(fEvent); // No fEvent on this object ReleaseMutex(fMutex); #endif *************** *** 387,391 **** WaitForSingleObject(fMutex,INFINITE); fLock = false; ! ReleaseEvent(fCond); ReleaseMutex(fMutex); #endif --- 389,393 ---- WaitForSingleObject(fMutex,INFINITE); fLock = false; ! // ReleaseEvent(fCond); No defined in Windows ReleaseMutex(fMutex); #endif |