Struct SYN_PT_Sem¶
Counting semaphore for protothreads. More...
#include <syn_pt_sem.h>
Public Attributes¶
| Type | Name |
|---|---|
| volatile int16_t | count |
Detailed Description¶
Costs 2 bytes of RAM. The count is signed to allow detecting underflow bugs, but normal operation keeps it >= 0.
Public Attributes Documentation¶
variable count¶
Current semaphore count (>= 0 means available)
The documentation for this class was generated from the following file src/syntropic/pt/syn_pt_sem.h