Mercurial > sdl-ios-xcode
comparison include/SDL_thread.h @ 1465:8dfa9a6d69a5
Updated WinCE support by Dmitry (with some tweaks)
Converted the disk audio driver to SDL_RWops for portability
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 04 Mar 2006 08:24:35 +0000 |
parents | e3242177fe4a |
children | d47d96962fcc |
comparison
equal
deleted
inserted
replaced
1464:af30090c0330 | 1465:8dfa9a6d69a5 |
---|---|
57 then the RTL of SDL.DLL will be used to create the new thread, and if it's | 57 then the RTL of SDL.DLL will be used to create the new thread, and if it's |
58 the application, then the RTL of the application will be used. | 58 the application, then the RTL of the application will be used. |
59 So, in short: | 59 So, in short: |
60 Always use the _beginthread() and _endthread() of the calling runtime library! | 60 Always use the _beginthread() and _endthread() of the calling runtime library! |
61 */ | 61 */ |
62 #ifndef _WIN32_WCE | |
62 #include <process.h> // This has _beginthread() and _endthread() defined! | 63 #include <process.h> // This has _beginthread() and _endthread() defined! |
64 #endif | |
63 #ifdef __EMX__ | 65 #ifdef __EMX__ |
64 #include <stdlib.h> // This has _beginthread() and _endthread() defined, if -Zmt flag is used! | 66 #include <stdlib.h> // This has _beginthread() and _endthread() defined, if -Zmt flag is used! |
65 #endif | 67 #endif |
66 | 68 |
67 #ifdef __OS2__ | 69 #ifdef __OS2__ |
68 typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); | 70 typedef int (*pfnSDL_CurrentBeginThread)(void (*func)(void *), void *, unsigned, void *arg); |
69 typedef void (*pfnSDL_CurrentEndThread)(void); | 71 typedef void (*pfnSDL_CurrentEndThread)(void); |
70 #else | 72 #else |
71 #ifdef __GNUC__ | |
72 #include <stdint.h> | |
73 #endif | |
74 typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, | 73 typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, |
75 unsigned (__stdcall *func)(void *), void *arg, | 74 unsigned (__stdcall *func)(void *), void *arg, |
76 unsigned, unsigned *threadID); | 75 unsigned, unsigned *threadID); |
77 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); | 76 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); |
78 #endif | 77 #endif |