Nebula
Loading...
Searching...
No Matches
OSX::OSXCriticalSection Class Reference

#include <osxcriticalsection.h>

Detailed Description

On OSX, pthread mutexes are used for critical sections.

Todo
: Add debugging asserts? If yes wrap with new __NEBULA-define

(C) 2010 Radon Labs GmbH (C) 2013-2018 Individual contributors, see AUTHORS file

Public Member Functions

 OSXCriticalSection ()
 constructor
 
 ~OSXCriticalSection ()
 destructor
 
void Enter () const
 enter the critical section
 
void Leave () const
 leave the critical section
 

Private Attributes

pthread_mutex_t mutex
 

Constructor & Destructor Documentation

◆ OSXCriticalSection()

OSX::OSXCriticalSection::OSXCriticalSection ( )
inline

constructor

◆ ~OSXCriticalSection()

OSX::OSXCriticalSection::~OSXCriticalSection ( )
inline

destructor

Member Function Documentation

◆ Enter()

void OSX::OSXCriticalSection::Enter ( ) const
inline

enter the critical section

◆ Leave()

void OSX::OSXCriticalSection::Leave ( ) const
inline

leave the critical section

Member Data Documentation

◆ mutex

pthread_mutex_t OSX::OSXCriticalSection::mutex
mutableprivate

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