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 9 of file Semaphores.h.
|
inline |
|
virtual |
Implements AP_HAL::Semaphore.
Definition at line 12 of file Semaphores.cpp.
Referenced by PX4::DeviceBus::bus_thread(), PX4::PX4UARTDriver::read(), Semaphore(), and PX4::PX4UARTDriver::write().
|
virtual |
Implements AP_HAL::Semaphore.
Definition at line 17 of file Semaphores.cpp.
Referenced by PX4::DeviceBus::bus_thread(), and Semaphore().
|
virtual |
Implements AP_HAL::Semaphore.
Definition at line 39 of file Semaphores.cpp.
Referenced by PX4::PX4UARTDriver::read(), Semaphore(), take(), and PX4::PX4UARTDriver::write().
|
private |
Definition at line 18 of file Semaphores.h.
Referenced by give(), Semaphore(), take(), and take_nonblocking().