Lines Matching refs:thread
138 adb_thread_t* thread = nullptr) {
142 if (thread) {
143 *thread = reinterpret_cast<HANDLE>(handle);
145 CloseHandle(thread);
152 static __inline__ bool adb_thread_join(adb_thread_t thread) { in adb_thread_join() argument
153 switch (WaitForSingleObject(thread, INFINITE)) { in adb_thread_join()
155 CloseHandle(thread); in adb_thread_join()
170 static __inline__ bool adb_thread_detach(adb_thread_t thread) { in adb_thread_detach() argument
171 CloseHandle(thread); in adb_thread_detach()
705 adb_thread_t* thread = nullptr) {
709 pthread_attr_setdetachstate(&attr, thread ? PTHREAD_CREATE_JOINABLE : PTHREAD_CREATE_DETACHED);
713 if (thread) {
714 *thread = temp;
721 static __inline__ bool adb_thread_join(adb_thread_t thread) { in adb_thread_join() argument
722 errno = pthread_join(thread, nullptr); in adb_thread_join()
726 static __inline__ bool adb_thread_detach(adb_thread_t thread) { in adb_thread_detach() argument
727 errno = pthread_detach(thread); in adb_thread_detach()