• Home
  • Raw
  • Download

Lines Matching refs:thread

70 static void SDL_AddThread(SDL_Thread *thread)  in SDL_AddThread()  argument
101 SDL_Threads[SDL_numthreads++] = thread; in SDL_AddThread()
106 static void SDL_DelThread(SDL_Thread *thread) in SDL_DelThread() argument
115 if ( thread == SDL_Threads[i] ) { in SDL_DelThread()
212 SDL_Thread *thread; in SDL_CreateThread() local
217 thread = (SDL_Thread *)SDL_malloc(sizeof(*thread)); in SDL_CreateThread()
218 if ( thread == NULL ) { in SDL_CreateThread()
222 SDL_memset(thread, 0, (sizeof *thread)); in SDL_CreateThread()
223 thread->status = -1; in SDL_CreateThread()
229 SDL_free(thread); in SDL_CreateThread()
234 args->info = thread; in SDL_CreateThread()
237 SDL_free(thread); in SDL_CreateThread()
243 SDL_AddThread(thread); in SDL_CreateThread()
247 ret = SDL_SYS_CreateThread(thread, args, pfnBeginThread, pfnEndThread); in SDL_CreateThread()
249 ret = SDL_SYS_CreateThread(thread, args); in SDL_CreateThread()
256 SDL_DelThread(thread); in SDL_CreateThread()
257 SDL_free(thread); in SDL_CreateThread()
258 thread = NULL; in SDL_CreateThread()
264 return(thread); in SDL_CreateThread()
267 void SDL_WaitThread(SDL_Thread *thread, int *status) in SDL_WaitThread() argument
269 if ( thread ) { in SDL_WaitThread()
270 SDL_SYS_WaitThread(thread); in SDL_WaitThread()
272 *status = thread->status; in SDL_WaitThread()
274 SDL_DelThread(thread); in SDL_WaitThread()
275 SDL_free(thread); in SDL_WaitThread()
279 Uint32 SDL_GetThreadID(SDL_Thread *thread) in SDL_GetThreadID() argument
283 if ( thread ) { in SDL_GetThreadID()
284 id = thread->threadid; in SDL_GetThreadID()
291 void SDL_KillThread(SDL_Thread *thread) in SDL_KillThread() argument
293 if ( thread ) { in SDL_KillThread()
294 SDL_SYS_KillThread(thread); in SDL_KillThread()
295 SDL_WaitThread(thread, NULL); in SDL_KillThread()