Lines Matching refs:thread
24 /* OS/2 thread management routines for SDL */
46 // Call the thread function!
60 int SDL_SYS_CreateThread(SDL_Thread *thread, void *args, pfnSDL_CurrentBeginThread pfnBeginThread, pfnSDL_CurrentEndThread pfnEndThread)
65 SDL_SetError("Not enough memory to create thread");
71 // Also save the real parameters we have to pass to thread function
73 // Start the thread using the runtime library of calling app!
74 thread->threadid = thread->handle = (*pfnBeginThread)(threadfunc, NULL, 512*1024, pThreadParms);
75 if ((int)thread->threadid <= 0)
77 SDL_SetError("Not enough resources to create thread");
95 void SDL_SYS_WaitThread(SDL_Thread *thread)
97 TID tid = thread->handle;
105 void SDL_SYS_KillThread(SDL_Thread *thread)
107 DosKillThread(thread->handle);