Go to the documentation of this file.00001 #ifndef __RAK_THREAD_H
00002 #define __RAK_THREAD_H
00003
00004 #if defined(_WIN32_WCE)
00005 #include "WindowsIncludes.h"
00006 #endif
00007
00008 #include "Export.h"
00009
00010 namespace RakNet
00011 {
00012
00014 #if defined(_WIN32_WCE)
00015 #define RAK_THREAD_DECLARATION(functionName) DWORD WINAPI functionName(LPVOID arguments)
00016 #elif defined(_XBOX) || defined(X360)
00017
00018 #elif defined(_WIN32)
00019 #define RAK_THREAD_DECLARATION(functionName) unsigned __stdcall functionName( void* arguments )
00020 #else
00021 #define RAK_THREAD_DECLARATION(functionName) void* functionName( void* arguments )
00022 #endif
00023
00024 class RAK_DLL_EXPORT RakThread
00025 {
00026 public:
00027
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042 #if defined(_WIN32_WCE)
00043 static int Create( LPTHREAD_START_ROUTINE start_address, void *arglist, int priority=0);
00044 #elif defined(_XBOX) || defined(X360)
00045
00046 #elif defined(_WIN32)
00047 static int Create( unsigned __stdcall start_address( void* ), void *arglist, int priority=0);
00048 #else
00049 static int Create( void* start_address( void* ), void *arglist, int priority=0);
00050 #endif
00051 };
00052
00053 }
00054
00055 #endif