|
scc 2025.09
SystemC components library
|
a lock for the semaphore More...
#include <ordered_semaphore.h>
Public Member Functions | |
| lock (scc::ordered_semaphore &sem) | |
| lock the given semahore, wait if not free | |
| lock (scc::ordered_semaphore &sem, unsigned prio) | |
| ~lock () | |
| destructor, unlock the semaphore if still locked | |
| void | release () |
| unlock the semaphore | |
a lock for the semaphore
it allows to use lock/unlock a semaphore in RTTI style
Definition at line 145 of file ordered_semaphore.h.
|
inline |
lock the given semahore, wait if not free
| sem | the semaphore |
Definition at line 152 of file ordered_semaphore.h.
|
inline |
Definition at line 156 of file ordered_semaphore.h.
|
inline |
destructor, unlock the semaphore if still locked
Definition at line 165 of file ordered_semaphore.h.
|
inline |
unlock the semaphore
Definition at line 171 of file ordered_semaphore.h.