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>

List of all members.

Public Member Functions

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

Public Attributes

CHNL_MTX_TYPE_ & m_ref
 A reference to the channel lock.

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  )  [inline, explicit]

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

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:

Generated on 30 Sep 2016 for SystemC by  doxygen 1.6.1