SystemC 3.0.0
Accellera SystemC proof-of-concept library
Public Member Functions | List of all members
sc_core::sc_host_semaphore Class Reference

#include <sysc/communication/sc_host_semaphore.h>

Inheritance diagram for sc_core::sc_host_semaphore:
Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_host_semaphore:
Collaboration graph
[legend]

Public Member Functions

 sc_host_semaphore (int init=0)
 
virtual ~sc_host_semaphore ()=default
 
virtual int wait ()
 
virtual int trywait ()
 
virtual int post ()
 
virtual int get_value () const
 
virtual int wait ()=0
 
virtual int trywait ()=0
 
virtual int post ()=0
 
virtual int get_value () const =0
 
- Public Member Functions inherited from sc_core::sc_interface
virtual void register_port (sc_port_base &port_, const char *if_typename_)
 
virtual const sc_eventdefault_event () const
 
virtual ~sc_interface ()
 

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 ()
 

Detailed Description

Definition at line 50 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 56 of file sc_host_semaphore.h.

◆ ~sc_host_semaphore()

virtual sc_core::sc_host_semaphore::~sc_host_semaphore ( )
virtualdefault

Member Function Documentation

◆ get_value()

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

Implements sc_core::sc_semaphore_if.

Definition at line 92 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 83 of file sc_host_semaphore.h.

◆ trywait()

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

Implements sc_core::sc_semaphore_if.

Definition at line 73 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 62 of file sc_host_semaphore.h.


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