Components/Libraries/XF/FreeRTOS/BinarySemaphore
From UIT
(Difference between revisions)
Sara.chalokh (Talk | contribs) (Created page with "{{TOC right}} = Binary Semaphore = Binary Semaphore is semaphore that can be taken only one time. This is very like Mutex but Mutex include a priority inheritance mechanic. Bi...") |
Sara.chalokh (Talk | contribs) |
||
(One intermediate revision by one user not shown) | |||
Line 3: | Line 3: | ||
Binary Semaphore is semaphore that can be taken only one time. This is very like Mutex but Mutex include a priority inheritance mechanic. Binary semaphore not. | Binary Semaphore is semaphore that can be taken only one time. This is very like Mutex but Mutex include a priority inheritance mechanic. Binary semaphore not. | ||
Binary semaphores are principally used to implement synchronization (between tasks or between tasks and an interrupt). | Binary semaphores are principally used to implement synchronization (between tasks or between tasks and an interrupt). | ||
− | |||
= Member Functions Description = | = Member Functions Description = | ||
== BinarySemaphore() == | == BinarySemaphore() == | ||
+ | === Description === | ||
+ | Constructs the BinarySemaphore that manage the FreeRTOS binary semaphore. | ||
== ~BinarySemaphore() == | == ~BinarySemaphore() == | ||
+ | === Description === | ||
+ | Deletes the binary semaphore | ||
== bool isAvailable() == | == bool isAvailable() == | ||
+ | === Description === | ||
+ | Return true if semaphore is available else false |
Latest revision as of 14:13, 10 August 2017
|
Binary Semaphore
Binary Semaphore is semaphore that can be taken only one time. This is very like Mutex but Mutex include a priority inheritance mechanic. Binary semaphore not. Binary semaphores are principally used to implement synchronization (between tasks or between tasks and an interrupt).
Member Functions Description
BinarySemaphore()
Description
Constructs the BinarySemaphore that manage the FreeRTOS binary semaphore.
~BinarySemaphore()
Description
Deletes the binary semaphore
bool isAvailable()
Description
Return true if semaphore is available else false