Request a write lock for the specified read-write lock object.
More...
#include <esynch.h>
Request a write lock for the specified read-write lock object.
◆ EWRLock()
EWRLock::EWRLock |
( |
ERWLock & |
rwlock, |
|
|
Bool |
acq = true |
|
) |
| |
|
inline |
Class constructor.
- Parameters
-
rwlock | the read-write lock object to obtain the write lock for. |
acq | directs the constructor to acquire the lock. |
◆ ~EWRLock()
◆ acquire()
Bool EWRLock::acquire |
( |
Bool |
wait = true | ) |
|
|
inline |
Acquires the lock.
- Parameters
-
wait | if True, this method will wait for the lock to be obtained. |
- Returns
- True indicates that the lock was successfully acquired, otherwise False.
◆ isLocked()
Bool EWRLock::isLocked |
( |
| ) |
|
|
inline |
Retrieves the lock status.
- Returns
- True indicates that the lock has been acquired, otherwise False.
The documentation for this class was generated from the following file:
- /home/vagrant/share/code/epctools/include/epc/esynch.h