src/thread/SDL_thread.c
changeset 1190 173c063d4f55
parent 769 b8d311d90021
child 1312 c9b51268668f
     1.1 --- a/src/thread/SDL_thread.c	Wed Nov 23 07:23:48 2005 +0000
     1.2 +++ b/src/thread/SDL_thread.c	Wed Nov 23 07:29:56 2005 +0000
     1.3 @@ -218,7 +218,11 @@
     1.4  	*statusloc = userfunc(userdata);
     1.5  }
     1.6  
     1.7 -SDL_Thread *SDL_CreateThread(int (*fn)(void *), void *data)
     1.8 +#ifdef __OS2__
     1.9 +DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread_Core(int (*fn)(void *), void *data, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
    1.10 +#else
    1.11 +DECLSPEC SDL_Thread * SDLCALL SDL_CreateThread(int (*fn)(void *), void *data)
    1.12 +#endif
    1.13  {
    1.14  	SDL_Thread *thread;
    1.15  	thread_args *args;
    1.16 @@ -254,7 +258,11 @@
    1.17  	SDL_AddThread(thread);
    1.18  
    1.19  	/* Create the thread and go! */
    1.20 +#ifdef __OS2__
    1.21 +        ret = SDL_SYS_CreateThread(thread, args, pfnBeginThread, pfnEndThread);
    1.22 +#else
    1.23  	ret = SDL_SYS_CreateThread(thread, args);
    1.24 +#endif
    1.25  	if ( ret >= 0 ) {
    1.26  		/* Wait for the thread function to use arguments */
    1.27  		SDL_SemWait(args->wait);