SystemC  Recoding Infrastructure for SystemC v0.6.3 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Classes | Namespaces | Macros
sc_host_mutex.h File Reference
#include "sysc/kernel/sc_cmnhdr.h"
#include "sysc/communication/sc_mutex_if.h"
#include <pthread.h>
Include dependency graph for sc_host_mutex.h:

Go to the source code of this file.

Classes

class  sc_core::sc_host_mutex
 The sc_host_mutex class, wrapping an OS mutex on the simulation host. More...
 

Namespaces

 sc_core
 

Macros

#define SC_INCLUDE_WINDOWS_H
 
#define SC_MTX_TYPE_   pthread_mutex_t
 
#define SC_PTHREAD_NULL_   NULL
 
#define SC_MTX_INIT_(Mutex)   pthread_mutex_init( &(Mutex), SC_PTHREAD_NULL_ )
 
#define SC_MTX_LOCK_(Mutex)   pthread_mutex_lock( &(Mutex) )
 
#define SC_MTX_UNLOCK_(Mutex)   pthread_mutex_unlock( &(Mutex) )
 
#define SC_MTX_TRYLOCK_(Mutex)   ( false )
 
#define SC_MTX_DESTROY_(Mutex)   pthread_mutex_destroy( &(Mutex) )
 

Macro Definition Documentation

#define SC_INCLUDE_WINDOWS_H

Definition at line 31 of file sc_host_mutex.h.

#define SC_MTX_DESTROY_ (   Mutex)    pthread_mutex_destroy( &(Mutex) )

Definition at line 77 of file sc_host_mutex.h.

#define SC_MTX_INIT_ (   Mutex)    pthread_mutex_init( &(Mutex), SC_PTHREAD_NULL_ )

Definition at line 62 of file sc_host_mutex.h.

#define SC_MTX_LOCK_ (   Mutex)    pthread_mutex_lock( &(Mutex) )

Definition at line 64 of file sc_host_mutex.h.

#define SC_MTX_TRYLOCK_ (   Mutex)    ( false )

Definition at line 73 of file sc_host_mutex.h.

#define SC_MTX_TYPE_   pthread_mutex_t

Definition at line 54 of file sc_host_mutex.h.

#define SC_MTX_UNLOCK_ (   Mutex)    pthread_mutex_unlock( &(Mutex) )

Definition at line 66 of file sc_host_mutex.h.

#define SC_PTHREAD_NULL_   NULL

Definition at line 59 of file sc_host_mutex.h.