Pyrogenesis  trunk
Classes | Namespaces | Macros | Functions
ThreadUtil.h File Reference
#include "lib/posix/posix_pthread.h"
Include dependency graph for ThreadUtil.h:
This graph shows which files directly or indirectly include this file:

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)
#define UNLOCK_MUTEX (   _mutex)    pthread_mutex_unlock(_mutex)