A semaphore for controlling access to a shared resource. More...
#include <sem.h>
Data Fields | |
| struct lock_core | core |
| Core lock primitive used for blocking and signalling. | |
| int16_t | permits |
| Current number of available permits. | |
| int16_t | max_permits |
| Maximum number of permits allowed. | |
A semaphore for controlling access to a shared resource.
Holds the current number of available permits and the maximum permitted count.