Pico-Arduino
Public Member Functions | Protected Attributes | List of all members
Semaphore Class Reference

Pico Semaphore which might be useful if you use the 2 processors (e.g. with the Thread class) More...

#include <PicoSemaphore.h>

Public Member Functions

 Semaphore (int maxPermits=1, int initalPermits=1)
 
int available ()
 
void reset (int permits=1)
 
bool aquire (int64_t timeoutMs=-1)
 
bool release ()
 
bool up ()
 
bool down ()
 
bool wait ()
 
bool signal ()
 

Protected Attributes

semaphore_t sem
 

Detailed Description

Pico Semaphore which might be useful if you use the 2 processors (e.g. with the Thread class)

Author
Phil Schatzmann

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