APM:Libraries
Public Member Functions | Private Attributes | List of all members
Empty::Semaphore Class Reference

#include <Semaphores.h>

Inheritance diagram for Empty::Semaphore:
[legend]
Collaboration diagram for Empty::Semaphore:
[legend]

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

bool _taken
 

Detailed Description

Definition at line 5 of file Semaphores.h.

Constructor & Destructor Documentation

◆ Semaphore()

Empty::Semaphore::Semaphore ( )
inline

Definition at line 7 of file Semaphores.h.

Here is the call graph for this function:

Member Function Documentation

◆ give()

bool Semaphore::give ( )
virtual

Implements AP_HAL::Semaphore.

Definition at line 6 of file Semaphores.cpp.

Referenced by Semaphore().

Here is the caller graph for this function:

◆ take()

bool Semaphore::take ( uint32_t  timeout_ms)
virtual

Implements AP_HAL::Semaphore.

Definition at line 15 of file Semaphores.cpp.

Referenced by Semaphore().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ take_nonblocking()

bool Semaphore::take_nonblocking ( )
virtual

Implements AP_HAL::Semaphore.

Definition at line 19 of file Semaphores.cpp.

Referenced by Semaphore(), and take().

Here is the caller graph for this function:

Member Data Documentation

◆ _taken

bool Empty::Semaphore::_taken
private

Definition at line 12 of file Semaphores.h.

Referenced by give(), and take_nonblocking().


The documentation for this class was generated from the following files: