OGRE  2.0
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
OgreThreads.h File Reference
#include "OgreSharedPtr.h"
#include <pthread.h>
+ Include dependency graph for OgreThreads.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Ogre::ThreadHandle
 
class  Ogre::Threads
 

Namespaces

 Ogre
 

This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/

 

Macros

#define OGRE_THREAD_CALL_CONVENTION
 
#define THREAD_DECLARE(threadFunction)
 Threads::CreateThread for an example on how to use More...
 
#define THREAD_GET(threadFunction)   threadFunction##_internal
 

Typedefs

typedef void * HANDLE
 
typedef unsigned long(OGRE_THREAD_CALL_CONVENTIONOgre::THREAD_ENTRY_POINT )(void *lpThreadParameter)
 
typedef SharedPtr< ThreadHandle > Ogre::ThreadHandlePtr
 
typedef vector
< ThreadHandlePtr >::type 
Ogre::ThreadHandleVec
 

Macro Definition Documentation

#define OGRE_THREAD_CALL_CONVENTION

Definition at line 43 of file OgreThreads.h.

#define THREAD_DECLARE (   threadFunction)
Value:
unsigned long OGRE_THREAD_CALL_CONVENTION threadFunction##_internal( void *argName )\
{\
unsigned long retVal = 0;\
ThreadHandle *threadHandle( reinterpret_cast<ThreadHandle*>( argName ) );\
try {\
retVal = threadFunction( threadHandle );\
}\
catch( ... )\
{\
}\
delete threadHandle;\
return retVal;\
}
#define OGRE_THREAD_CALL_CONVENTION
Definition: OgreThreads.h:43

Threads::CreateThread for an example on how to use

Definition at line 48 of file OgreThreads.h.

#define THREAD_GET (   threadFunction)    threadFunction##_internal

Definition at line 132 of file OgreThreads.h.

Typedef Documentation

typedef void* HANDLE

Definition at line 83 of file OgreThreads.h.