scc
2022.4.0
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 More... | |
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 144 of file ordered_semaphore.h.
|
inline |
lock the given semahore, wait if not free
sem | the semaphore |
Definition at line 151 of file ordered_semaphore.h.