gem5 v24.0.0.0
|
#include <sc_semaphore.hh>
Public Member Functions | |
sc_semaphore (int) | |
sc_semaphore (const char *name, int) | |
virtual int | wait () |
virtual int | trywait () |
virtual int | post () |
virtual int | get_value () const |
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_semaphore (const sc_semaphore &) | |
sc_semaphore & | operator= (const sc_semaphore &) |
Private Attributes | |
int | _value |
sc_gem5::InternalScEvent | posted |
Additional Inherited Members | |
Protected Member Functions inherited from sc_core::sc_semaphore_if | |
sc_semaphore_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 38 of file sc_semaphore.hh.
|
explicit |
Definition at line 38 of file sc_semaphore.cc.
sc_core::sc_semaphore::sc_semaphore | ( | const char * | name, |
int | value ) |
Definition at line 42 of file sc_semaphore.cc.
References sc_core::sc_object::name(), and SC_REPORT_ERROR.
|
inlineprivate |
Definition at line 53 of file sc_semaphore.hh.
|
virtual |
Implements sc_core::sc_semaphore_if.
Definition at line 77 of file sc_semaphore.cc.
References _value.
|
inlinevirtual |
Reimplemented from sc_core::sc_object.
Definition at line 49 of file sc_semaphore.hh.
|
inlineprivate |
Definition at line 57 of file sc_semaphore.hh.
|
virtual |
Implements sc_core::sc_semaphore_if.
Definition at line 70 of file sc_semaphore.cc.
References _value, sc_core::sc_event::notify(), and posted.
|
virtual |
Implements sc_core::sc_semaphore_if.
Definition at line 60 of file sc_semaphore.cc.
References _value.
Referenced by wait().
|
virtual |
Implements sc_core::sc_semaphore_if.
Definition at line 52 of file sc_semaphore.cc.
References posted, trywait(), and sc_core::wait().
|
private |
Definition at line 59 of file sc_semaphore.hh.
Referenced by get_value(), post(), and trywait().
|
private |
Definition at line 60 of file sc_semaphore.hh.