19 #define OS_SEMAPHORE_TAG 0x73506852u
uint32_t tag
Should always be set to the value OS_SEMAPHORE_TAG.
int32_t count
Current count of semaphore.
OSThreadQueue queue
Queue of threads waiting on semaphore object with OSWaitSemaphore.
const char * name
Name set by OSInitMutexEx.
int32_t OSWaitSemaphore(OSSemaphore *semaphore)
Decrease the semaphore value.
int32_t OSTryWaitSemaphore(OSSemaphore *semaphore)
Try to decrease the semaphore value.
int32_t OSSignalSemaphore(OSSemaphore *semaphore)
Increase the semaphore value.
int32_t OSGetSemaphoreCount(OSSemaphore *semaphore)
Get the current semaphore count.
void OSInitSemaphoreEx(OSSemaphore *semaphore, int32_t count, const char *name)
Initialise semaphore object with count and name.
void OSInitSemaphore(OSSemaphore *semaphore, int32_t count)
Initialise semaphore object with count.