sc_core::sc_mutex Class Reference

The sc_mutex primitive channel class. More...

#include <sysc/communication/sc_mutex.h>

Inheritance diagram for sc_core::sc_mutex:
Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_mutex:
Collaboration graph
[legend]

List of all members.

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_bm_owner
sc_event m_free
CHNL_MTX_TYPE_ m_mutex
 A lock to protect concurrent communication through sc_mutex.

Detailed Description

The sc_mutex primitive channel class.

Definition at line 46 of file sc_mutex.h.


Constructor & Destructor Documentation

sc_core::sc_mutex::sc_mutex (  ) 
sc_core::sc_mutex::sc_mutex ( const char *  name_  )  [explicit]
virtual sc_core::sc_mutex::~sc_mutex (  )  [virtual]

Member Function Documentation

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.


Member Data Documentation

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.

Definition at line 88 of file sc_mutex.h.


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

Generated on 30 Sep 2015 for SystemC by  doxygen 1.6.1