|
IoTivity-Lite
|
Counting semaphores implemented on protothreads. More...
#include "pt.h"Macros | |
| #define | PT_SEM_COUNT(s) ((s)->head - (s)->tail) |
| #define | PT_SEM_INIT(s, c) |
| Initialize a semaphore. More... | |
| #define | PT_SEM_SIGNAL(pt, s) |
| Signal a semaphore. More... | |
| #define | PT_SEM_WAIT(pt, s) |
| Wait for a semaphore. More... | |
Counting semaphores implemented on protothreads.