|
gem5 [DEVELOP-FOR-25.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.
References sc_core::sc_gen_unique_name(), and sc_semaphore().
Referenced by operator=(), sc_semaphore(), and sc_semaphore().
| sc_core::sc_semaphore::sc_semaphore | ( | const char * | name, |
| int | value ) |
Definition at line 42 of file sc_semaphore.cc.
References _value, sc_core::sc_object::name(), sc_core::SC_ID_INVALID_SEMAPHORE_VALUE_, sc_core::sc_object::sc_object(), SC_REPORT_ERROR, and sc_core::sc_semaphore_if::sc_semaphore_if().
|
inlineprivate |
Definition at line 53 of file sc_semaphore.hh.
References sc_core::sc_object::sc_object(), sc_semaphore(), and sc_core::sc_semaphore_if::sc_semaphore_if().
|
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.
References sc_semaphore().
|
virtual |
Implements sc_core::sc_semaphore_if.
Definition at line 70 of file sc_semaphore.cc.
|
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(), sc_semaphore(), and trywait().
|
private |
Definition at line 60 of file sc_semaphore.hh.