#include <linux_hal_common.hpp>
Extends OSLock generic interface to Linux
LinuxLock::~LinuxLock |
( |
| ) |
|
|
protected |
Destroys mutexes if lock is still valid
Initializes all mutexes and locks.
- Parameters
-
type | OSLockType enumeration. If oslock_recursive then set pthreads attributes to PTHREAD_MUTEX_RECURSIVE |
- Returns
- If successful, returns oslock_ok. Returns oslock_fail otherwise
Provides a simple lock mechanism.
- Returns
- oslock_fail if lock has failed, oslock_ok otherwise.
Implements OSLock.
Provides a simple trylock mechanism.
- Returns
- oslock_fail if lock has failed, oslock_ok otherwise.
Implements OSLock.
Provides a simple unlock mechanism.
- Returns
- oslock_fail if unlock has failed, oslock_ok otherwise.
Implements OSLock.
The documentation for this class was generated from the following file: