#include <rwxLock.h>
Public Member Functions | |
void | rlock () throw (IopcRsrcLackException, IopcDeadlockException, IopcNoMemoryException) |
Waits lock for reading. | |
void | wlock () throw (IopcDeadlockException, IopcNoMemoryException) |
Waits for lock writing. | |
void | xlock () throw (IopcDeadlockException, IopcNoMemoryException) |
Waits for exclusive lock (only one is allowed). | |
bool | tryRLock () throw (IopcRsrcLackException, IopcDeadlockException) |
Tries to get lock for reading immediately. | |
bool | tryWLock () throw (IopcRsrcLackException, IopcDeadlockException) |
Tries to get lock for writing immediately. | |
bool | tryXLock () throw (IopcDeadlockException) |
Tries to get exclusive lock immediately. | |
void | unlock () throw (IopcIncorrectUsageException) |
Removes one lock. |
Allows several write locks to be held by a thread.