Counting Semaphore of the QXK preemptive kernel. More...
Counting Semaphore of the QXK preemptive kernel.
QXSemaphore is a blocking mechanism intended primarily for signaling extended threads. The semaphore is initialized with the maximum count (see QXSemaphore_init()), which allows you to create a binary semaphore (when the maximum count is 1) and counting semaphore when the maximum count is > 1.
The following example illustrates how to instantiate and use the semaphore in your application.