Lines Matching defs:thread
30 * Thread, mutex, condition variable, barrier, semaphore and
31 * thread-specific data functions.
59 pipe_thread thread;
65 ret = pthread_create( &thread, NULL, routine, param );
69 return thread;
72 static INLINE int pipe_thread_wait( pipe_thread thread )
74 return pthread_join( thread, NULL );
77 static INLINE int pipe_thread_destroy( pipe_thread thread )
79 return pthread_detach( thread );
144 static INLINE int pipe_thread_wait( pipe_thread thread )
146 if (WaitForSingleObject( thread, INFINITE ) == WAIT_OBJECT_0)
151 static INLINE int pipe_thread_destroy( pipe_thread thread )
153 if (CloseHandle( thread ))
257 static INLINE int pipe_thread_wait( pipe_thread thread )
262 static INLINE int pipe_thread_destroy( pipe_thread thread )
442 * Thread-specific data.
463 perror("pthread_key_create(): failed to allocate key for thread specific data");