![]() |
LockWrite() |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
Public Function |
Declared in: Win32ReadWriteLock.h |
virtual BOOL LockWrite();
Lock for reading
//First lock the mutex and check the read flag CMutexAutoRelease aRelease(m_pMutex,TRUE); //Check the flag if (m_iReaders || m_bWriter) //Can't lock return FALSE; //Indicate we are writing m_bWriter=TRUE; //Done return TRUE;
![]() |
Site content copyright © 2003 Komodia LTD.. See the About page for additional notices. This page last updated: 24 Feb 2003. |