27 #ifndef SC_SEMAPHORE_H
28 #define SC_SEMAPHORE_H
67 virtual int wait(
int );
85 virtual const char*
kind()
const
86 {
return "sc_semaphore"; }
97 void report_error(
const char*
id,
const char* add_msg = 0 )
const;
virtual int get_value() const
CHNL_MTX_TYPE_ m_mutex
A lock to protect concurrent communication through sc_semaphore.
virtual int wait(int)
A new parameter segment ID is added for the out-of-order simulation.
#define CHNL_MTX_LOCK_(Mutex)
The sc_semaphore_if interface class.
virtual const char * kind() const
sc_semaphore(int init_value_)
The sc_semaphore primitive channel class.
void report_error(const char *id, const char *add_msg=0) const
#define CHNL_MTX_UNLOCK_(Mutex)
sc_clock period is zero sc_clock low time is zero sc_fifo< T > cannot have more than one writer bind interface to port failed complete binding failed remove port failed insert primitive channel failed sc_signal< T > cannot have more than one driver resolved port not bound to resolved signal sc_semaphore requires an initial value
Abstract base class of all SystemC `simulation' objects.