Home
last modified time | relevance | path

Searched refs:thread_handle (Results 1 – 25 of 37) sorted by relevance

12

/external/sfntly/cpp/src/test/
Dplatform_thread.cc32 PlatformThreadHandle* thread_handle) { in Create() argument
33 assert(thread_handle); in Create()
34 *thread_handle = CreateThread(NULL, 0, ThreadFunc, delegate, 0, NULL); in Create()
35 if (!(*thread_handle)) { in Create()
43 void PlatformThread::Join(PlatformThreadHandle thread_handle) { in Join() argument
44 assert(thread_handle); in Join()
45 DWORD result = WaitForSingleObject(thread_handle, INFINITE); in Join()
47 CloseHandle(thread_handle); in Join()
66 PlatformThreadHandle* thread_handle) {
67 assert(thread_handle);
[all …]
Dplatform_thread.h61 static bool Create(Delegate* delegate, PlatformThreadHandle* thread_handle);
66 static void Join(PlatformThreadHandle thread_handle);
/external/libhevc/encoder/
Dosal_thread.c158 &(hdl->thread_handle), /* Thread Handle */ in osal_thread_create()
205 WORD32 osal_thread_destroy(IN void *thread_handle) in osal_thread_destroy() argument
208 if(0 == thread_handle) in osal_thread_destroy()
212 thread_handle_t *hdl = (thread_handle_t *)thread_handle; in osal_thread_destroy()
375 WORD32 osal_thread_suspend(IN void *thread_handle) in osal_thread_suspend() argument
378 if(0 == thread_handle) in osal_thread_suspend()
417 WORD32 osal_thread_resume(IN void *thread_handle) in osal_thread_resume() argument
420 if(0 == thread_handle) in osal_thread_resume()
458 WORD32 osal_thread_wait(IN void *thread_handle) in osal_thread_wait() argument
460 if(0 == thread_handle) in osal_thread_wait()
[all …]
Dosal.h152 void *thread_handle; /* Thread to be associated with mail box. */ member
454 extern WORD32 osal_thread_destroy(IN void *thread_handle);
463 extern WORD32 osal_thread_suspend(IN void *thread_handle);
467 extern WORD32 osal_thread_resume(IN void *thread_handle);
471 extern WORD32 osal_thread_wait(IN void *thread_handle);
Dosal_thread.h58 pthread_t thread_handle; /* POSIX Thread handle */ member
Dosal_select_engine.h64 void *thread_handle; /* Select engine thread handle */ member
Dosal_handle.h72 debug_handle_t thread_handle[DEBUG_ORDER]; member
/external/libchrome/base/threading/
Dplatform_thread_posix.cc89 PlatformThreadHandle* thread_handle, in CreateThread() argument
91 DCHECK(thread_handle); in CreateThread()
126 *thread_handle = PlatformThreadHandle(handle); in CreateThread()
198 PlatformThreadHandle* thread_handle, in CreateWithPriority() argument
201 thread_handle, priority); in CreateWithPriority()
222 void PlatformThread::Join(PlatformThreadHandle thread_handle) { in Join() argument
224 base::debug::ScopedThreadJoinActivity thread_activity(&thread_handle); in Join()
230 CHECK_EQ(0, pthread_join(thread_handle.platform_handle(), nullptr)); in Join()
234 void PlatformThread::Detach(PlatformThreadHandle thread_handle) { in Detach() argument
235 CHECK_EQ(0, pthread_detach(thread_handle.platform_handle())); in Detach()
Dplatform_thread.h168 PlatformThreadHandle* thread_handle) { in Create() argument
169 return CreateWithPriority(stack_size, delegate, thread_handle, in Create()
176 PlatformThreadHandle* thread_handle,
193 static void Join(PlatformThreadHandle thread_handle);
197 static void Detach(PlatformThreadHandle thread_handle);
/external/curl/lib/
Dcurl_threads.c115 curl_win_thread_handle_t thread_handle; in Curl_thread_create() local
117 thread_handle = CreateThread(NULL, 0, func, arg, 0, NULL); in Curl_thread_create()
119 thread_handle = _beginthreadex(NULL, 0, func, arg, 0, NULL); in Curl_thread_create()
121 t = (curl_thread_t)thread_handle; in Curl_thread_create()
/external/libmpeg2/common/
Dithread.c70 WORD32 ithread_create(void *thread_handle, void *attribute, void *strt, void *argument) in ithread_create() argument
73 return pthread_create((pthread_t *)thread_handle, NULL,(void *(*)(void *)) strt, argument); in ithread_create()
76 WORD32 ithread_join(void *thread_handle, void ** val_ptr) in ithread_join() argument
78 pthread_t *pthread_handle = (pthread_t *)thread_handle; in ithread_join()
Dithread.h45 WORD32 ithread_create(void *thread_handle, void *attribute, void *strt, void *argument);
/external/libavc/common/
Dithread.c77 WORD32 ithread_create(void *thread_handle, void *attribute, void *strt, void *argument) in ithread_create() argument
80 return pthread_create((pthread_t *)thread_handle, NULL,(void *(*)(void *)) strt, argument); in ithread_create()
83 WORD32 ithread_join(void *thread_handle, void ** val_ptr) in ithread_join() argument
86 pthread_t *pthread_handle = (pthread_t *)thread_handle; in ithread_join()
Dithread.h65 WORD32 ithread_create(void *thread_handle, void *attribute, void *strt, void *argument);
/external/libhevc/common/
Dithread.c64 WORD32 ithread_create(void *thread_handle, void *attribute, void *strt, void *argument) in ithread_create() argument
66 … return pthread_create((pthread_t *)thread_handle, attribute, (void * (*)(void *))strt, argument); in ithread_create()
69 WORD32 ithread_join(void *thread_handle, void **val_ptr) in ithread_join() argument
71 pthread_t *pthread_handle = (pthread_t *)thread_handle; in ithread_join()
/external/llvm-project/lldb/source/Plugins/Process/Windows/Common/
DNativeRegisterContextWindows_WoW64.cpp60 GetWoW64ThreadContextHelper(lldb::thread_t thread_handle, in GetWoW64ThreadContextHelper() argument
67 if (!::Wow64GetThreadContext(thread_handle, context_ptr)) { in GetWoW64ThreadContextHelper()
76 static Status SetWoW64ThreadContextHelper(lldb::thread_t thread_handle, in SetWoW64ThreadContextHelper() argument
80 if (!::Wow64SetThreadContext(thread_handle, context_ptr)) { in SetWoW64ThreadContextHelper()
178 auto thread_handle = GetThreadHandle(); in GPRWrite() local
179 Status error = GetWoW64ThreadContextHelper(thread_handle, &tls_context); in GPRWrite()
234 return SetWoW64ThreadContextHelper(thread_handle, &tls_context); in GPRWrite()
279 auto thread_handle = GetThreadHandle(); in DRWrite() local
281 GetWoW64ThreadContextHelper(thread_handle, &tls_context, context_flag); in DRWrite()
310 return SetWoW64ThreadContextHelper(thread_handle, &tls_context); in DRWrite()
DNativeRegisterContextWindows_i386.cpp55 static Status GetThreadContextHelper(lldb::thread_t thread_handle, in GetThreadContextHelper() argument
63 if (!::GetThreadContext(thread_handle, context_ptr)) { in GetThreadContextHelper()
72 static Status SetThreadContextHelper(lldb::thread_t thread_handle, in SetThreadContextHelper() argument
77 if (!::SetThreadContext(thread_handle, context_ptr)) { in SetThreadContextHelper()
185 auto thread_handle = GetThreadHandle(); in GPRWrite() local
187 GetThreadContextHelper(thread_handle, &tls_context, context_flag); in GPRWrite()
242 return SetThreadContextHelper(thread_handle, &tls_context); in GPRWrite()
287 auto thread_handle = GetThreadHandle(); in DRWrite() local
289 GetThreadContextHelper(thread_handle, &tls_context, context_flag); in DRWrite()
318 return SetThreadContextHelper(thread_handle, &tls_context); in DRWrite()
DNativeRegisterContextWindows_arm.cpp88 static Status GetThreadContextHelper(lldb::thread_t thread_handle, in GetThreadContextHelper() argument
96 if (!::GetThreadContext(thread_handle, context_ptr)) { in GetThreadContextHelper()
105 static Status SetThreadContextHelper(lldb::thread_t thread_handle, in SetThreadContextHelper() argument
110 if (!::SetThreadContext(thread_handle, context_ptr)) { in SetThreadContextHelper()
224 auto thread_handle = GetThreadHandle(); in GPRWrite() local
226 GetThreadContextHelper(thread_handle, &tls_context, context_flag); in GPRWrite()
284 return SetThreadContextHelper(thread_handle, &tls_context); in GPRWrite()
402 auto thread_handle = GetThreadHandle(); in FPRWrite() local
404 GetThreadContextHelper(thread_handle, &tls_context, context_flag); in FPRWrite()
503 return SetThreadContextHelper(thread_handle, &tls_context); in FPRWrite()
DNativeRegisterContextWindows_x86_64.cpp67 static Status GetThreadContextHelper(lldb::thread_t thread_handle, in GetThreadContextHelper() argument
75 if (!::GetThreadContext(thread_handle, context_ptr)) { in GetThreadContextHelper()
84 static Status SetThreadContextHelper(lldb::thread_t thread_handle, in SetThreadContextHelper() argument
89 if (!::SetThreadContext(thread_handle, context_ptr)) { in SetThreadContextHelper()
231 auto thread_handle = GetThreadHandle(); in GPRWrite() local
233 GetThreadContextHelper(thread_handle, &tls_context, context_flag); in GPRWrite()
312 return SetThreadContextHelper(thread_handle, &tls_context); in GPRWrite()
383 auto thread_handle = GetThreadHandle(); in FPRWrite() local
385 GetThreadContextHelper(thread_handle, &tls_context, context_flag); in FPRWrite()
440 return SetThreadContextHelper(thread_handle, &tls_context); in FPRWrite()
[all …]
DNativeRegisterContextWindows_arm64.cpp104 static Status GetThreadContextHelper(lldb::thread_t thread_handle, in GetThreadContextHelper() argument
112 if (!::GetThreadContext(thread_handle, context_ptr)) { in GetThreadContextHelper()
121 static Status SetThreadContextHelper(lldb::thread_t thread_handle, in SetThreadContextHelper() argument
126 if (!::SetThreadContext(thread_handle, context_ptr)) { in SetThreadContextHelper()
267 auto thread_handle = GetThreadHandle(); in GPRWrite() local
269 GetThreadContextHelper(thread_handle, &tls_context, context_flag); in GPRWrite()
355 return SetThreadContextHelper(thread_handle, &tls_context); in GPRWrite()
491 auto thread_handle = GetThreadHandle(); in FPRWrite() local
493 GetThreadContextHelper(thread_handle, &tls_context, context_flag); in FPRWrite()
612 return SetThreadContextHelper(thread_handle, &tls_context); in FPRWrite()
DTargetThreadWindows.cpp145 HANDLE thread_handle = m_host_thread.GetNativeThread().GetSystemHandle(); in DoResume() local
151 previous_suspend_count = ::ResumeThread(thread_handle); in DoResume()
DNativeThreadWindows.cpp62 HANDLE thread_handle = m_host_thread.GetNativeThread().GetSystemHandle(); in DoResume() local
68 previous_suspend_count = ::ResumeThread(thread_handle); in DoResume()
/external/pthreadpool/src/
Dwindows.c175 threadpool->threads[tid].thread_handle = CreateThread( in pthreadpool_create()
336 const HANDLE thread_handle = threadpool->threads[tid].thread_handle; in pthreadpool_destroy() local
337 if (thread_handle != NULL) { in pthreadpool_destroy()
338 const DWORD wait_status = WaitForSingleObject(thread_handle, INFINITE); in pthreadpool_destroy()
341 const BOOL close_status = CloseHandle(thread_handle); in pthreadpool_destroy()
/external/libchrome/base/task_scheduler/
Dscheduler_worker.cc101 PlatformThreadHandle thread_handle; in JoinForTesting() local
106 thread_handle = thread_handle_; in JoinForTesting()
111 PlatformThread::Join(thread_handle); in JoinForTesting()
/external/llvm-project/lldb/tools/darwin-threads/
Dexamine-threads.c252 int get_proc_threadinfo(pid_t pid, uint64_t thread_handle, in get_proc_threadinfo() argument
255 int ret = proc_pidinfo(pid, PROC_PIDTHREADINFO, thread_handle, pth, in get_proc_threadinfo()
435 (uint64_t)identifier_info.thread_handle); in main()
439 get_proc_threadinfo(pid, identifier_info.thread_handle, &pth); in main()

12