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

#include <Semaphores.h>

Inheritance diagram for HALSITL::Semaphore:
[legend]
Collaboration diagram for HALSITL::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

pthread_mutex_t _lock
 

Detailed Description

Definition at line 9 of file Semaphores.h.

Constructor & Destructor Documentation

◆ Semaphore()

HALSITL::Semaphore::Semaphore ( )
inline

Definition at line 11 of file Semaphores.h.

Here is the call graph for this function:

Member Function Documentation

◆ give()

bool HALSITL::Semaphore::give ( )
virtual

Implements AP_HAL::Semaphore.

Referenced by Semaphore().

Here is the caller graph for this function:

◆ take()

bool HALSITL::Semaphore::take ( uint32_t  timeout_ms)
virtual

Implements AP_HAL::Semaphore.

Referenced by Semaphore().

Here is the caller graph for this function:

◆ take_nonblocking()

bool HALSITL::Semaphore::take_nonblocking ( )
virtual

Implements AP_HAL::Semaphore.

Referenced by Semaphore().

Here is the caller graph for this function:

Member Data Documentation

◆ _lock

pthread_mutex_t HALSITL::Semaphore::_lock
private

Definition at line 18 of file Semaphores.h.

Referenced by Semaphore().


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