Lines Matching defs:thread
18 #error No thread library detected.
48 PP_INLINE bool PP_CreateThread(PP_Thread* thread,
51 PP_INLINE void PP_JoinThread(PP_Thread thread);
54 /* Because POSIX thread functions return void* and Windows thread functions do
55 * not, we make PPAPI thread functions have the least capability (no returns).
72 PP_INLINE bool PP_CreateThread(PP_Thread* thread,
79 return (pthread_create(thread,
85 PP_INLINE void PP_JoinThread(PP_Thread thread) {
87 pthread_join(thread, &exit_status);
93 PP_Thread* thread = reinterpret_cast<PP_Thread*>(param);
94 thread->thread_func(thread->thread_arg);
98 PP_INLINE bool PP_CreateThread(PP_Thread* thread,
101 if (!thread)
103 thread->thread_func = function;
104 thread->thread_arg = thread_arg;
108 thread,
111 thread->handle = reinterpret_cast<HANDLE>(raw_handle);
112 return (thread->handle != NULL);
115 PP_INLINE void PP_JoinThread(PP_Thread thread) {
116 ::WaitForSingleObject(thread.handle, INFINITE);
117 ::CloseHandle(thread.handle);