APM:Libraries
|
#include <Semaphores.h>
Public Member Functions | |
Semaphore () | |
bool | give () |
bool | take (uint32_t timeout_ms) |
bool | take_nonblocking () |
Public Member Functions inherited from AP_HAL::Semaphore | |
virtual void | take_blocking () |
virtual | ~Semaphore (void) |
Private Attributes | |
pthread_mutex_t | _lock |
Definition at line 11 of file Semaphores.h.
|
inline |
|
virtual |
Implements AP_HAL::Semaphore.
Definition at line 9 of file Semaphores.cpp.
Referenced by Linux::Scheduler::_run_io(), Linux::Scheduler::_timer_task(), Linux::I2CBus::end_cb(), Linux::Scheduler::resume_timer_procs(), and Semaphore().
|
virtual |
Implements AP_HAL::Semaphore.
Definition at line 14 of file Semaphores.cpp.
Referenced by Linux::Scheduler::_run_io(), Linux::Scheduler::_timer_task(), Semaphore(), Linux::I2CBus::start_cb(), and Linux::Scheduler::suspend_timer_procs().
|
virtual |
Implements AP_HAL::Semaphore.
Definition at line 32 of file Semaphores.cpp.
Referenced by Semaphore(), and take().
|
private |
Definition at line 20 of file Semaphores.h.
Referenced by give(), Semaphore(), take(), and take_nonblocking().