Free Electron
Classes | Namespaces | Macros
Safe.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fe::ClassSafe< T >
 Class level locking for thread safety. More...
 
class  fe::ObjectSafe< T >
 Object level locking for thread safety. More...
 
class  fe::NotSafe< T >
 No locking for thread safety. More...
 

Namespaces

 fe
 kernel
 

Macros

#define SAFEGUARD
 
#define SAFEGUARD_IF(X)
 
#define SAFEUNLOCK   __fe_thread_safeguard.unlock();
 
#define SAFELOCK   __fe_thread_safeguard.lock();
 
#define SAFEGUARDCLASS
 
#define SAFEGUARDCLASS_IF(X)
 
#define SAFEUNLOCKCLASS   __fe_class_thread_safeguard.unlock();
 
#define SAFELOCKCLASS   __fe_class_thread_safeguard.lock();
 

Macro Definition Documentation

◆ SAFEGUARD

#define SAFEGUARD
Value:
FEASSERT(fe_thread_mutex()); \
SafeGuard __fe_thread_safeguard( \
fe_thread_mutex());

◆ SAFEGUARD_IF

#define SAFEGUARD_IF (   X)
Value:
FEASSERT(fe_thread_mutex()); \
SafeGuard __fe_thread_safeguard( \
fe_thread_mutex(),X);

◆ SAFEGUARDCLASS

#define SAFEGUARDCLASS
Value:
FEASSERT(fe_class_thread_mutex()); \
SafeGuard __fe_class_thread_safeguard( \
fe_class_thread_mutex());

◆ SAFEGUARDCLASS_IF

#define SAFEGUARDCLASS_IF (   X)
Value:
FEASSERT(fe_class_thread_mutex()); \
SafeGuard __fe_class_thread_safeguard( \
fe_class_thread_mutex(),X);