Counting Semaphore of the QXK preemptive kernel.
More...
Counting Semaphore of the QXK preemptive kernel.
- Details
- QP::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.
- Usage
- The following example illustrates how to instantiate and use the semaphore in your application.
. . .
TH_sema.init(0U,
1U);
for (;;) {
TH_sema.wait();
. . .
}
}
Counting Semaphore of the QXK preemptive kernel.
eXtended (blocking) thread of the QXK preemptive kernel
The documentation for this class was generated from the following file: