The sc_mutex primitive channel class. More...
#include <sysc/communication/sc_mutex.h>
Public Member Functions | |
sc_mutex () | |
sc_mutex (const char *name_) | |
virtual | ~sc_mutex () |
virtual int | lock (int) |
A new parameter segment ID is added for the out-of-order simulation. | |
virtual int | trylock () |
virtual int | unlock () |
virtual const char * | kind () const |
Protected Member Functions | |
bool | in_use () const |
Protected Attributes | |
sc_process_b * | m_owner |
sc_event | m_free |
CHNL_MTX_TYPE_ | m_mutex |
A lock to protect concurrent communication through sc_mutex. |
The sc_mutex primitive channel class.
Definition at line 46 of file sc_mutex.h.
sc_core::sc_mutex::sc_mutex | ( | ) |
sc_core::sc_mutex::sc_mutex | ( | const char * | name_ | ) | [explicit] |
virtual sc_core::sc_mutex::~sc_mutex | ( | ) | [virtual] |
bool sc_core::sc_mutex::in_use | ( | ) | const [inline, protected] |
Definition at line 83 of file sc_mutex.h.
virtual const char* sc_core::sc_mutex::kind | ( | ) | const [inline, virtual] |
Reimplemented from sc_core::sc_object.
Definition at line 76 of file sc_mutex.h.
virtual int sc_core::sc_mutex::lock | ( | int | ) | [virtual] |
A new parameter segment ID is added for the out-of-order simulation.
Implements sc_core::sc_mutex_if.
virtual int sc_core::sc_mutex::trylock | ( | ) | [virtual] |
Implements sc_core::sc_mutex_if.
virtual int sc_core::sc_mutex::unlock | ( | ) | [virtual] |
Implements sc_core::sc_mutex_if.
sc_event sc_core::sc_mutex::m_free [protected] |
Definition at line 89 of file sc_mutex.h.
CHNL_MTX_TYPE_ sc_core::sc_mutex::m_mutex [mutable, protected] |
A lock to protect concurrent communication through sc_mutex.
Definition at line 95 of file sc_mutex.h.
sc_process_b* sc_core::sc_mutex::m_owner [protected] |
Definition at line 88 of file sc_mutex.h.