#include <locker.h>
Public Types | |
enum | LOCK_STATUS { LOCK_OK = 1, LOCK_TIMEOUT = -1, LOCK_FAILED = 0 } |
Public Member Functions | |
pthread_mutex_t * | getLockHandle () |
Locker::LOCK_STATUS | lock (unsigned long timeout=0xFFFFFFFF) |
Locker () | |
void | unlock () |
~Locker () | |
Protected Member Functions | |
void | init () |
void | release () |
Protected Attributes | |
pthread_mutex_t | _lock |
rp::hal::Locker::Locker | ( | ) | [inline] |
rp::hal::Locker::~Locker | ( | ) | [inline] |
pthread_mutex_t* rp::hal::Locker::getLockHandle | ( | ) | [inline] |
void rp::hal::Locker::init | ( | ) | [inline, protected] |
Locker::LOCK_STATUS rp::hal::Locker::lock | ( | unsigned long | timeout = 0xFFFFFFFF | ) | [inline] |
void rp::hal::Locker::release | ( | ) | [inline, protected] |
void rp::hal::Locker::unlock | ( | ) | [inline] |
pthread_mutex_t rp::hal::Locker::_lock [protected] |