Mercurial > sdl-ios-xcode
comparison include/SDL_thread.h @ 1850:d5d3a6fe05a1
Fixed thread callback calling conventions, updated OS/2 DLL name to SDL12.dll
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 17 May 2006 18:57:04 +0000 |
parents | 9fb0eee04dd9 |
children | c121d94672cb e85e65aec22f |
comparison
equal
deleted
inserted
replaced
1849:b5a4ac87b98c | 1850:d5d3a6fe05a1 |
---|---|
77 unsigned (__stdcall *func)(void *), void *arg, | 77 unsigned (__stdcall *func)(void *), void *arg, |
78 unsigned, unsigned *threadID); | 78 unsigned, unsigned *threadID); |
79 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); | 79 typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); |
80 #endif | 80 #endif |
81 | 81 |
82 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread); | 82 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (SDLCALL *fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread); |
83 | 83 |
84 #ifdef __OS2__ | 84 #ifdef __OS2__ |
85 #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthread, _endthread) | 85 #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, _beginthread, _endthread) |
86 #elif defined(_WIN32_WCE) | 86 #elif defined(_WIN32_WCE) |
87 #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, NULL, NULL) | 87 #define SDL_CreateThread(fn, data) SDL_CreateThread(fn, data, NULL, NULL) |