|
APM:Libraries
|
#include <Semaphores.h>
Public Member Functions | |
| Semaphore () | |
| bool | give () |
| bool | take (uint32_t timeout_ms) |
| bool | take_nonblocking () |
| bool | svc_give () |
| bool | svc_take (uint32_t timeout_ms) |
| bool | svc_take_nonblocking () |
| void * | get_owner () |
| bool | is_taken () |
| bool | is_waiting () |
Public Member Functions inherited from AP_HAL::Semaphore | |
| virtual void | take_blocking () |
| virtual | ~Semaphore (void) |
Protected Member Functions | |
| bool | _take_from_mainloop (uint32_t timeout_ms) |
| bool | _take_nonblocking () |
| bool | _give () |
Protected Attributes | |
| volatile bool | _taken |
| void * | _task |
| bool | _is_waiting |
Definition at line 32 of file Semaphores.h.
| Semaphore::Semaphore | ( | ) |
Definition at line 24 of file Semaphores.cpp.
|
protected |
Definition at line 64 of file Semaphores.cpp.
Referenced by give().
|
protected |
Definition at line 69 of file Semaphores.cpp.
Referenced by take().
|
protected |
Definition at line 75 of file Semaphores.cpp.
Referenced by take_nonblocking().
|
inline |
Definition at line 43 of file Semaphores.h.
Referenced by F4Light::Scheduler::get_next_task(), and F4Light::Scheduler::SVC_Handler().
|
virtual |
Implements AP_HAL::Semaphore.
Definition at line 31 of file Semaphores.cpp.
Referenced by F4Light::I2CDevice::do_bus_reset(), and F4Light::Scheduler::do_task().
|
inline |
Definition at line 44 of file Semaphores.h.
Referenced by F4Light::Scheduler::get_next_task().
|
inline |
Definition at line 45 of file Semaphores.h.
Referenced by F4Light::Scheduler::SVC_Handler().
| bool Semaphore::svc_give | ( | ) |
Definition at line 96 of file Semaphores.cpp.
Referenced by give(), and F4Light::Scheduler::SVC_Handler().
| bool Semaphore::svc_take | ( | uint32_t | timeout_ms | ) |
Definition at line 136 of file Semaphores.cpp.
Referenced by F4Light::Scheduler::SVC_Handler().
| bool Semaphore::svc_take_nonblocking | ( | ) |
Definition at line 112 of file Semaphores.cpp.
Referenced by F4Light::Scheduler::SVC_Handler(), and take().
|
virtual |
Implements AP_HAL::Semaphore.
Definition at line 45 of file Semaphores.cpp.
Referenced by F4Light::Scheduler::do_task().
|
virtual |
Implements AP_HAL::Semaphore.
Definition at line 41 of file Semaphores.cpp.
|
protected |
Definition at line 60 of file Semaphores.h.
Referenced by give(), svc_give(), svc_take(), and svc_take_nonblocking().
|
protected |
Definition at line 58 of file Semaphores.h.
Referenced by svc_give(), svc_take(), and svc_take_nonblocking().
|
protected |
Definition at line 59 of file Semaphores.h.
Referenced by svc_give(), svc_take(), and svc_take_nonblocking().
1.8.13