cThread.h

00001 // Copyright (c) 2008-2010 Raynaldo (Wildicv) Rivera, Joshua (Dark_Kilauea) Jones
00002 // This file is part of the "cAudio Engine"
00003 // For conditions of distribution and use, see copyright notice in cAudio.h
00004 
00005 #ifndef CAUDIOTHREAD_H
00006 #define CAUDIOTHREAD_H
00007 
00008 #include "../include/cAudioDefines.h"
00009 
00010 //Helper defines in order to make sure the function is declared right for use as a thread
00011 #ifdef CAUDIO_PLATFORM_WIN
00012 #define CAUDIO_DECLARE_THREAD_FUNCTION(functionName) unsigned __stdcall functionName( void* arguments )
00013 #else
00014 #define CAUDIO_DECLARE_THREAD_FUNCTION(functionName) void* functionName( void* arguments )
00015 #endif
00016 
00017 namespace cAudio
00018 {
00019         class cAudioThread
00020         {
00021         public:
00022         //      Really basic function to spawn a single detached thread
00026 #ifdef CAUDIO_PLATFORM_WIN
00027         static int SpawnThread( unsigned __stdcall start_address( void* ), void *arg);
00028 #else
00029         static int SpawnThread( void* start_address( void* ), void *arg);
00030 #endif
00031         };
00032 };
00033 
00034 #endif 
 All Classes Namespaces Functions Variables Enumerations

Generated on Sat Feb 20 22:55:07 2010 for cAudio by  doxygen 1.6.2