|
scc
2024.06
SystemC components library
|


Public Member Functions | |
| ordered_semaphore_t (const char *name_) | |
Public Member Functions inherited from scc::ordered_semaphore | |
| ordered_semaphore (unsigned init_value=1) | |
| constructor of an un-named semaphore More... | |
| ordered_semaphore (const char *name, unsigned init_value=1, bool value_traceable=false) | |
| ordered_semaphore (const ordered_semaphore &)=delete | |
| ordered_semaphore & | operator= (const ordered_semaphore &)=delete |
| int | wait () override |
| lock (take) the semaphore, block if not available More... | |
| int | wait (unsigned priority) |
| int | trywait () override |
| lock (take) the semaphore, return -1 if not available More... | |
| int | post () override |
| unlock (give) the semaphore More... | |
| unsigned | get_capacity () |
| retrieve the initial capacity of the semaphore | |
| void | set_capacity (unsigned capacity) |
| change the capacity More... | |
| int | get_value () const override |
| get the value of the semaphore More... | |
| const char * | kind () const override |
| kind of this SastemC object More... | |
| void | trace (sc_core::sc_trace_file *tf) const override |
| adds internal variables to trace More... | |
| bool | is_trace_enabled () const override |
| returns of this component shall be traced More... | |
Additional Inherited Members | |
Protected Member Functions inherited from scc::ordered_semaphore | |
| bool | in_use () |
| void | report_error (const char *id, const char *add_msg=0) const |
Protected Attributes inherited from scc::ordered_semaphore | |
| sc_core::sc_event | free_evt |
| int | value |
| unsigned | capacity |
| bool | value_traceable = false |
| std::unique_ptr< scc::sc_ref_variable< int > > | value_ref |
| std::array< std::deque< sc_core::sc_process_handle >, 2 > | queue |
Definition at line 213 of file ordered_semaphore.h.