SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_core::sc_host_semaphore Class Reference

#include <sysc/communication/sc_host_semaphore.h>

Inheritance diagram for sc_core::sc_host_semaphore:
Collaboration diagram for sc_core::sc_host_semaphore:

Public Member Functions

 sc_host_semaphore (int init=0)
 
virtual ~sc_host_semaphore ()
 
virtual int wait ()
 
virtual int trywait ()
 
virtual int post ()
 
virtual int get_value () const
 
virtual void register_port (sc_port_base &port_, const char *if_typename_)
 
virtual const sc_eventdefault_event () const
 

Detailed Description

Definition at line 54 of file sc_host_semaphore.h.

Constructor & Destructor Documentation

◆ sc_host_semaphore()

sc_core::sc_host_semaphore::sc_host_semaphore ( int  init = 0)
inlineexplicit

Definition at line 90 of file sc_host_semaphore.h.

◆ ~sc_host_semaphore()

virtual sc_core::sc_host_semaphore::~sc_host_semaphore ( )
inlinevirtual

Definition at line 92 of file sc_host_semaphore.h.

Member Function Documentation

◆ default_event()

virtual const sc_event& sc_core::sc_interface::default_event ( ) const
virtualinherited

◆ get_value()

virtual int sc_core::sc_host_semaphore::get_value ( ) const
inlinevirtual

Implements sc_core::sc_semaphore_if.

Definition at line 110 of file sc_host_semaphore.h.

◆ post()

virtual int sc_core::sc_host_semaphore::post ( )
inlinevirtual

Implements sc_core::sc_semaphore_if.

Definition at line 106 of file sc_host_semaphore.h.

◆ register_port()

virtual void sc_core::sc_interface::register_port ( sc_port_base port_,
const char *  if_typename_ 
)
virtualinherited

◆ trywait()

virtual int sc_core::sc_host_semaphore::trywait ( )
inlinevirtual

Implements sc_core::sc_semaphore_if.

Definition at line 102 of file sc_host_semaphore.h.

◆ wait()

virtual int sc_core::sc_host_semaphore::wait ( )
inlinevirtual

Implements sc_core::sc_semaphore_if.

Definition at line 98 of file sc_host_semaphore.h.


The documentation for this class was generated from the following file: