Lines Matching refs:thread
76 static av_unused int pthread_create(pthread_t *thread, const void *unused_attr,
79 thread->func = start_routine;
80 thread->arg = arg;
82 thread->handle = (void*)CreateThread(NULL, 0, win32thread_worker, thread,
85 thread->handle = (void*)_beginthreadex(NULL, 0, win32thread_worker, thread,
88 return !thread->handle;
91 static av_unused int pthread_join(pthread_t thread, void **value_ptr)
93 DWORD ret = WaitForSingleObject(thread.handle, INFINITE);
101 *value_ptr = thread.ret;
102 CloseHandle(thread.handle);