| | |
| | | #include "psp/SDL_systhread_c.h" |
| | | #elif SDL_THREAD_STDCPP |
| | | #include "stdcpp/SDL_systhread_c.h" |
| | | #elif SDL_THREAD_OS2 |
| | | #include "os2/SDL_systhread_c.h" |
| | | #else |
| | | #error Need thread implementation for this platform |
| | | #include "generic/SDL_systhread_c.h" |
| | |
| | | SDL_error errbuf; |
| | | char *name; |
| | | size_t stacksize; /* 0 for default, >0 for user-specified stack size. */ |
| | | int (SDLCALL * userfunc) (void *); |
| | | void *userdata; |
| | | void *data; |
| | | void *endfunc; /* only used on some platforms. */ |
| | | }; |
| | | |
| | | /* This is the function called to run a thread */ |
| | | extern void SDL_RunThread(void *data); |
| | | extern void SDL_RunThread(SDL_Thread *thread); |
| | | |
| | | /* This is the system-independent thread local storage structure */ |
| | | typedef struct { |