FreeRTOS C++ Wrappers  1.6.0
C++ interface to FreeRTOS
Public Member Functions | List of all members
cpp_freertos::BinarySemaphore Class Reference

#include <semaphore.hpp>

Inheritance diagram for cpp_freertos::BinarySemaphore:
Inheritance graph
[legend]
Collaboration diagram for cpp_freertos::BinarySemaphore:
Collaboration graph
[legend]

Public Member Functions

 BinarySemaphore (bool set=false)
 
- Public Member Functions inherited from cpp_freertos::Semaphore
bool Take (TickType_t Timeout=portMAX_DELAY)
 
bool Give ()
 
bool TakeFromISR (BaseType_t *pxHigherPriorityTaskWoken)
 
bool GiveFromISR (BaseType_t *pxHigherPriorityTaskWoken)
 
virtual ~Semaphore ()
 

Additional Inherited Members

- Protected Member Functions inherited from cpp_freertos::Semaphore
 Semaphore ()
 
- Protected Attributes inherited from cpp_freertos::Semaphore
SemaphoreHandle_t handle
 

Detailed Description

Wrapper class for Binary Semaphores.

Definition at line 194 of file semaphore.hpp.

Constructor & Destructor Documentation

◆ BinarySemaphore()

BinarySemaphore::BinarySemaphore ( bool  set = false)
explicit

Constructor to create a binary semaphore.

Parameters
setIs this semaphore "full" or not?
Exceptions
SemaphoreCreateExceptionon failure.
Returns
Instance of a BinarySemaphore.

Definition at line 97 of file csemaphore.cpp.


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