sysc/communication/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

namespace  sc_core

Defines

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

Define 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.


Generated on 30 Sep 2015 for SystemC by  doxygen 1.6.1