Mercurial > sdl-ios-xcode
comparison include/SDL_thread.h @ 337:9154ec9ca3d2
Explicitly specify the SDL API calling convention (C by default)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 11 Apr 2002 14:35:16 +0000 |
parents | f6ffac90895c |
children | b8d311d90021 |
comparison
equal
deleted
inserted
replaced
336:745873ea091f | 337:9154ec9ca3d2 |
---|---|
48 /* The SDL thread structure, defined in SDL_thread.c */ | 48 /* The SDL thread structure, defined in SDL_thread.c */ |
49 struct SDL_Thread; | 49 struct SDL_Thread; |
50 typedef struct SDL_Thread SDL_Thread; | 50 typedef struct SDL_Thread SDL_Thread; |
51 | 51 |
52 /* Create a thread */ | 52 /* Create a thread */ |
53 extern DECLSPEC SDL_Thread * SDL_CreateThread(int (*fn)(void *), void *data); | 53 extern DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data); |
54 | 54 |
55 /* Get the 32-bit thread identifier for the current thread */ | 55 /* Get the 32-bit thread identifier for the current thread */ |
56 extern DECLSPEC Uint32 SDL_ThreadID(void); | 56 extern DECLSPEC Uint32 SDLCALL SDL_ThreadID(void); |
57 | 57 |
58 /* Get the 32-bit thread identifier for the specified thread, | 58 /* Get the 32-bit thread identifier for the specified thread, |
59 equivalent to SDL_ThreadID() if the specified thread is NULL. | 59 equivalent to SDL_ThreadID() if the specified thread is NULL. |
60 */ | 60 */ |
61 extern DECLSPEC Uint32 SDL_GetThreadID(SDL_Thread *thread); | 61 extern DECLSPEC Uint32 SDLCALL SDL_GetThreadID(SDL_Thread *thread); |
62 | 62 |
63 /* Wait for a thread to finish. | 63 /* Wait for a thread to finish. |
64 The return code for the thread function is placed in the area | 64 The return code for the thread function is placed in the area |
65 pointed to by 'status', if 'status' is not NULL. | 65 pointed to by 'status', if 'status' is not NULL. |
66 */ | 66 */ |
67 extern DECLSPEC void SDL_WaitThread(SDL_Thread *thread, int *status); | 67 extern DECLSPEC void SDLCALL SDL_WaitThread(SDL_Thread *thread, int *status); |
68 | 68 |
69 /* Forcefully kill a thread without worrying about its state */ | 69 /* Forcefully kill a thread without worrying about its state */ |
70 extern DECLSPEC void SDL_KillThread(SDL_Thread *thread); | 70 extern DECLSPEC void SDLCALL SDL_KillThread(SDL_Thread *thread); |
71 | 71 |
72 | 72 |
73 /* Ends C function definitions when using C++ */ | 73 /* Ends C function definitions when using C++ */ |
74 #ifdef __cplusplus | 74 #ifdef __cplusplus |
75 } | 75 } |