33 #ifndef SC_SEMAPHORE_H 34 #define SC_SEMAPHORE_H 67 virtual int trywait();
76 virtual const char*
kind()
const 77 {
return "sc_semaphore"; }
84 {
return ( m_value <= 0 ); }
88 void report_error(
const char*
id,
const char* add_msg = 0 )
const;
The sc_semaphore_if interface class.
Abstract base class of all SystemC `simulation' objects.
The sc_semaphore primitive channel class.
The sc_semaphore_if interface class.
Abstract base class of all SystemC `simulation' objects.
virtual int get_value() const
virtual const char * kind() const
Original Author: Martin Janssen, Synopsys, Inc., 2001-05-21.
void SC_API wait(int, sc_simcontext *)