Pyrogenesis  13997
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros | Functions
ThreadUtil.h File Reference
#include "lib/posix/posix_pthread.h"

Go to the source code of this file.

Classes

class  CMutex
 A non-recursive mutual exclusion lock. More...
 
class  CScopeLock
 Locks a CMutex over this object's lifetime. More...
 

Namespaces

 ThreadUtil
 

Macros

#define LOCK_MUTEX(_mutex)   pthread_mutex_lock(_mutex)
 
#define UNLOCK_MUTEX(_mutex)   pthread_mutex_unlock(_mutex)
 

Functions

bool ThreadUtil::IsMainThread ()
 Returns whether the current thread is the 'main' thread (i.e. More...
 
void ThreadUtil::SetMainThread ()
 Set the current thread as the 'main' thread. More...
 

Macro Definition Documentation

#define LOCK_MUTEX (   _mutex)    pthread_mutex_lock(_mutex)

Definition at line 37 of file ThreadUtil.h.

#define UNLOCK_MUTEX (   _mutex)    pthread_mutex_unlock(_mutex)

Definition at line 38 of file ThreadUtil.h.