CPN
Computational Process Networks
Public Member Functions | Public Attributes | List of all members
Sync::Internal::ScopeMutex Class Reference

#include <StatusHandler.h>

+ Collaboration diagram for Sync::Internal::ScopeMutex:

Public Member Functions

 ScopeMutex (pthread_mutex_t &l)
 
 ~ScopeMutex ()
 

Public Attributes

pthread_mutex_t & lock
 

Detailed Description

Definition at line 35 of file StatusHandler.h.

Constructor & Destructor Documentation

Sync::Internal::ScopeMutex::ScopeMutex ( pthread_mutex_t &  l)
inline

Definition at line 37 of file StatusHandler.h.

References ENSURE_ABORT, and lock.

37 : lock(l) { ENSURE_ABORT(!pthread_mutex_lock(&lock)); }
#define ENSURE_ABORT(exp,...)
pthread_mutex_t & lock
Definition: StatusHandler.h:39
Sync::Internal::ScopeMutex::~ScopeMutex ( )
inline

Definition at line 38 of file StatusHandler.h.

References ENSURE_ABORT, and lock.

38 { ENSURE_ABORT(!pthread_mutex_unlock(&lock)); }
#define ENSURE_ABORT(exp,...)
pthread_mutex_t & lock
Definition: StatusHandler.h:39

Member Data Documentation

pthread_mutex_t& Sync::Internal::ScopeMutex::lock

Definition at line 39 of file StatusHandler.h.

Referenced by ScopeMutex(), and ~ScopeMutex().


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