Home | History | Annotate | Download | only in thread

Lines Matching full:args

179 	thread_args *args;
190 args = (thread_args *)data;
191 args->info->threadid = SDL_ThreadID();
194 userfunc = args->func;
195 userdata = args->data;
196 statusloc = &args->info->status;
199 SDL_SemPost(args->wait);
213 thread_args *args;
226 args = (thread_args *)SDL_malloc(sizeof(*args));
227 if ( args == NULL ) {
232 args->func = fn;
233 args->data = data;
234 args->info = thread;
235 args->wait = SDL_CreateSemaphore(0);
236 if ( args->wait == NULL ) {
238 SDL_free(args);
247 ret = SDL_SYS_CreateThread(thread, args, pfnBeginThread, pfnEndThread);
249 ret = SDL_SYS_CreateThread(thread, args);
253 SDL_SemWait(args->wait);
260 SDL_DestroySemaphore(args->wait);
261 SDL_free(args);