scc  2022.4.0
SystemC components library
scc::ordered_semaphore::lock Struct Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ lock()

scc::ordered_semaphore::lock::lock ( scc::ordered_semaphore sem)
inline

lock the given semahore, wait if not free

Parameters
semthe semaphore

Definition at line 151 of file ordered_semaphore.h.


The documentation for this struct was generated from the following file: