• Main Page
  • Related Pages
  • Modules
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

RakThread.h

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         nice value      Win32 Priority
00036         -20 to -16      THREAD_PRIORITY_HIGHEST
00037         -15 to -6       THREAD_PRIORITY_ABOVE_NORMAL
00038         -5 to +4        THREAD_PRIORITY_NORMAL
00039         +5 to +14       THREAD_PRIORITY_BELOW_NORMAL
00040         +15 to +19      THREAD_PRIORITY_LOWEST
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

Generated on Thu Sep 30 2010 01:27:27 for RakNet by  doxygen 1.7.1