Class epicsMutex
Defined in File epicsMutex.h
Class Documentation
-
class epicsMutex
The C++ API for an epicsMutex.
Public Functions
-
epicsMutex()
Create a mutual exclusion semaphore.
-
epicsMutex(const char *pFileName, int lineno)
Create a mutual exclusion semaphore with source location.
Note
The newEpicsMutex macro simplifies using this constructor.
- Parameters
*pFileName – Source file name.
lineno – Source line number
-
~epicsMutex()
Delete the semaphore and its resources.
-
void show(unsigned level) const
Display information about the semaphore.
Note
Results are architecture dependent.
- Parameters
level – Desired information level to report
-
void lock()
Claim the semaphore, waiting until it’s free if currently owned owned by a different thread.
This call blocks until the calling thread can get exclusive access to the semaphore.
-
void unlock()
Release the semaphore.
-
epicsMutex()