#include <Thread.H>
|
pthread_mutex_t | mut |
| The POSIX mutex semaphore. More...
|
|
Class to protext mutual exclusion zones.
- Examples:
- ThreadTest.C.
Definition at line 271 of file Thread.H.
◆ Mutex()
Constructor. Initialises the mutual exclusion device.
Definition at line 278 of file Thread.H.
◆ ~Mutex()
virtual Mutex::~Mutex |
( |
| ) |
|
|
inlinevirtual |
Destroys the mutual exclusion device.
Definition at line 284 of file Thread.H.
◆ lock()
Lock the mutual exclusion zone.
- Returns
- NO_ERROR on success, the suitable error code otherwise (EINVAL, EDEADLK).
- Examples:
- IIOQueueTest.C, and ThreadTest.C.
Definition at line 295 of file Thread.H.
◆ tryLock()
Try to lock the mutual exclusion zone.
- Returns
- NO_ERROR on success, the suitable error code otherwise (EINVAL, EBUSY).
Definition at line 310 of file Thread.H.
◆ unLock()
Try to lock the mutual exclusion zone.
- Returns
- NO_ERROR on success, the suitable error code otherwise (EINVAL, EPERM when using a error checking mutex).
- Examples:
- IIOQueueTest.C, and ThreadTest.C.
Definition at line 325 of file Thread.H.
◆ mut
pthread_mutex_t Mutex::mut |
|
protected |
The POSIX mutex semaphore.
Definition at line 273 of file Thread.H.
The documentation for this class was generated from the following file: