SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_core::sc_scoped_lock Class Reference

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

#include <sysc/communication/sc_mutex_if.h>

Public Types

typedef sc_mutex_if lockable_type
 

Public Member Functions

 sc_scoped_lock (lockable_type &mtx)
 
bool release ()
 
 ~sc_scoped_lock ()
 

Detailed Description

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

Definition at line 83 of file sc_mutex_if.h.

Member Typedef Documentation

◆ lockable_type

Constructor & Destructor Documentation

◆ sc_scoped_lock()

sc_core::sc_scoped_lock::sc_scoped_lock ( lockable_type mtx)
inlineexplicit

Definition at line 90 of file sc_mutex_if.h.

◆ ~sc_scoped_lock()

sc_core::sc_scoped_lock::~sc_scoped_lock ( )
inline

Definition at line 108 of file sc_mutex_if.h.

Member Function Documentation

◆ release()

bool sc_core::sc_scoped_lock::release ( )
inline

Definition at line 97 of file sc_mutex_if.h.


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