![]() |
Escalate() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: Win32ReadWriteLock.h |
virtual BOOL Escalate( unsigned long ulMSTimeout, unsigned long ulIterations);
Escalate write priority
//Try to lock for write if (LockWrite()) return TRUE; //Try to escalate CMutexAutoRelease aRelease(m_pMutex,TRUE); //Change the escalation status m_bEscalation=TRUE; //Exit from the mutex aRelease.Release(); //And wait to see if we can continue for (unsigned long ulCounter=0;ulCounter<ulIterations;++ulCounter) { //Can we write if (LockWrite()) return TRUE; //Wait Sleep(ulMSTimeout); } //Failed to escalate return FALSE;
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |