gem5
v20.1.0.0
|
#include <sc_mutex.hh>
Public Member Functions | |
sc_mutex () | |
sc_mutex (const char *name) | |
virtual int | lock () |
virtual int | trylock () |
virtual int | unlock () |
virtual const char * | kind () const |
Public Member Functions inherited from sc_core::sc_interface | |
virtual void | register_port (sc_port_base &, const char *) |
virtual const sc_event & | default_event () const |
virtual | ~sc_interface () |
Public Member Functions inherited from sc_core::sc_object | |
const char * | name () const |
const char * | basename () const |
virtual void | print (std::ostream &=std::cout) const |
virtual void | dump (std::ostream &=std::cout) const |
virtual const std::vector< sc_object * > & | get_child_objects () const |
virtual const std::vector< sc_event * > & | get_child_events () const |
sc_object * | get_parent_object () const |
bool | add_attribute (sc_attr_base &) |
sc_attr_base * | get_attribute (const std::string &) |
sc_attr_base * | remove_attribute (const std::string &) |
void | remove_all_attributes () |
int | num_attributes () const |
sc_attr_cltn & | attr_cltn () |
const sc_attr_cltn & | attr_cltn () const |
sc_simcontext * | simcontext () const |
Private Member Functions | |
sc_mutex (const sc_mutex &) | |
sc_mutex & | operator= (const sc_mutex &) |
Private Attributes | |
sc_process_handle | holder |
sc_gem5::InternalScEvent | unlockEvent |
Additional Inherited Members | |
Protected Member Functions inherited from sc_core::sc_mutex_if | |
sc_mutex_if () | |
Protected Member Functions inherited from sc_core::sc_interface | |
sc_interface () | |
Protected Member Functions inherited from sc_core::sc_object | |
sc_object () | |
sc_object (const char *) | |
sc_object (const sc_object &) | |
sc_object & | operator= (const sc_object &) |
virtual | ~sc_object () |
Definition at line 39 of file sc_mutex.hh.
sc_core::sc_mutex::sc_mutex | ( | ) |
Definition at line 35 of file sc_mutex.cc.
|
explicit |
Definition at line 39 of file sc_mutex.cc.
|
inlineprivate |
Definition at line 53 of file sc_mutex.hh.
|
inlinevirtual |
Reimplemented from sc_core::sc_object.
Definition at line 49 of file sc_mutex.hh.
|
virtual |
Implements sc_core::sc_mutex_if.
Definition at line 44 of file sc_mutex.cc.
References trylock(), unlockEvent, and sc_core::wait().
Definition at line 54 of file sc_mutex.hh.
|
virtual |
Implements sc_core::sc_mutex_if.
Definition at line 52 of file sc_mutex.cc.
References sc_gem5::Scheduler::current(), holder, sc_gem5::scheduler, and sc_core::sc_process_handle::valid().
Referenced by lock().
|
virtual |
Implements sc_core::sc_mutex_if.
Definition at line 61 of file sc_mutex.cc.
References holder, sc_core::sc_event::notify(), sc_gem5::scheduler, and unlockEvent.
|
private |
Definition at line 56 of file sc_mutex.hh.
|
private |
Definition at line 57 of file sc_mutex.hh.