SystemC  Recoding Infrastructure for SystemC v0.6.0 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Member Functions | Public Attributes | List of all members
sc_core::chnl_scoped_lock Struct Reference

The chnl_scoped_lock class to lock (and automatically release) a mutex. More...

#include <sysc/communication/sc_prim_channel.h>

Public Member Functions

 chnl_scoped_lock (CHNL_MTX_TYPE_ &mtx)
 The constructor automatically acquires the channel lock. More...
 
 ~chnl_scoped_lock ()
 The destructor automatically releases the channel lock. More...
 

Public Attributes

CHNL_MTX_TYPE_m_ref
 A reference to the channel lock. More...
 

Detailed Description

The chnl_scoped_lock class to lock (and automatically release) a mutex.

Definition at line 48 of file sc_prim_channel.h.

Constructor & Destructor Documentation

sc_core::chnl_scoped_lock::chnl_scoped_lock ( CHNL_MTX_TYPE_ mtx)
inlineexplicit

The constructor automatically acquires the channel lock.

Definition at line 57 of file sc_prim_channel.h.

sc_core::chnl_scoped_lock::~chnl_scoped_lock ( )
inline

The destructor automatically releases the channel lock.

Definition at line 67 of file sc_prim_channel.h.

Member Data Documentation

CHNL_MTX_TYPE_& sc_core::chnl_scoped_lock::m_ref

A reference to the channel lock.

Definition at line 52 of file sc_prim_channel.h.


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