KosSemaphoreInit()
KosSemaphoreInit()
This function is declared in the kos/semaphore.h file.
Retcode KosSemaphoreInit(KosSemaphore *semaphore, unsigned count);
Initializes the defined semaphore with the initial count value.
The function returns the following:
- rcOk if successful;
- rcInvalidArgument, if the
semaphorepoints to an invalid semaphore; - rcFail if the
countvalue exceeds KOS_SEMAPHORE_VALUE_MAX.
Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.