OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
OgreThreads.h File Reference
#include "OgreSharedPtr.h"
#include <pthread.h>

Classes

class  Ogre::ThreadHandle
 
class  Ogre::Threads
 

Namespaces

namespace  Ogre
 

Macros

#define OGRE_THREAD_CALL_CONVENTION
 
#define OGRE_TLS_INVALID_HANDLE   0xFFFFFFFF
 
#define THREAD_DECLARE(threadFunction)
 @See Threads::CreateThread for an example on how to use
 
#define THREAD_GET(threadFunction)   threadFunction##_internal
 

Typedefs

typedef void *(OGRE_THREAD_CALL_CONVENTIONOgre::THREAD_ENTRY_POINT) (void *lpThreadParameter)
 
typedef SharedPtr< ThreadHandleOgre::ThreadHandlePtr
 
typedef vector< ThreadHandlePtr >::type Ogre::ThreadHandleVec
 
typedef pthread_key_t Ogre::TlsHandle
 

Macro Definition Documentation

◆ OGRE_THREAD_CALL_CONVENTION

#define OGRE_THREAD_CALL_CONVENTION

◆ OGRE_TLS_INVALID_HANDLE

#define OGRE_TLS_INVALID_HANDLE   0xFFFFFFFF

◆ THREAD_DECLARE

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

@See Threads::CreateThread for an example on how to use

◆ THREAD_GET

#define THREAD_GET (   threadFunction)    threadFunction##_internal