Loading...
Searching...
No Matches
semaphore Struct Reference

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.

Detailed Description

A semaphore for controlling access to a shared resource.

Holds the current number of available permits and the maximum permitted count.


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