Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/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/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/chromium/base/threading/
Dplatform_thread_win.cc47 PlatformThreadHandle thread_handle; in CreateThreadInternal() local
64 thread_handle = CreateThread( in CreateThreadInternal()
66 if (!thread_handle) { in CreateThreadInternal()
72 *out_thread_handle = thread_handle; in CreateThreadInternal()
74 CloseHandle(thread_handle); in CreateThreadInternal()
117 PlatformThreadHandle* thread_handle) { in Create() argument
118 DCHECK(thread_handle); in Create()
119 return CreateThreadInternal(stack_size, delegate, thread_handle); in Create()
128 void PlatformThread::Join(PlatformThreadHandle thread_handle) { in Join() argument
129 DCHECK(thread_handle); in Join()
[all …]
Dplatform_thread_posix.cc57 PlatformThreadHandle* thread_handle) { in CreateThread() argument
109 success = !pthread_create(thread_handle, &attributes, ThreadFunc, params); in CreateThread()
202 PlatformThreadHandle* thread_handle) { in Create() argument
204 delegate, thread_handle); in Create()
217 void PlatformThread::Join(PlatformThreadHandle thread_handle) { in Join() argument
222 pthread_join(thread_handle, NULL); in Join()
Dplatform_thread.h82 PlatformThreadHandle* thread_handle);
92 static void Join(PlatformThreadHandle thread_handle);
Dthread.h123 PlatformThreadHandle thread_handle() { return thread_; } in thread_handle() function
/external/chromium_org/base/threading/
Dplatform_thread_win.cc104 void* thread_handle = CreateThread( in CreateThreadInternal() local
106 if (!thread_handle) { in CreateThreadInternal()
112 *out_thread_handle = PlatformThreadHandle(thread_handle); in CreateThreadInternal()
114 CloseHandle(thread_handle); in CreateThreadInternal()
176 PlatformThreadHandle* thread_handle) { in Create() argument
177 DCHECK(thread_handle); in Create()
178 return CreateThreadInternal(stack_size, delegate, thread_handle); in Create()
183 PlatformThreadHandle* thread_handle, in CreateWithPriority() argument
185 bool result = Create(stack_size, delegate, thread_handle); in CreateWithPriority()
187 SetThreadPriority(*thread_handle, priority); in CreateWithPriority()
[all …]
Dplatform_thread_posix.cc92 PlatformThreadHandle* thread_handle, in CreateThread() argument
117 params.handle = thread_handle; in CreateThread()
136 CHECK_EQ(handle, thread_handle->platform_handle()); in CreateThread()
197 PlatformThreadHandle* thread_handle) { in Create() argument
200 delegate, thread_handle, kThreadPriority_Normal); in Create()
205 PlatformThreadHandle* thread_handle, in CreateWithPriority() argument
209 delegate, thread_handle, priority); in CreateWithPriority()
223 void PlatformThread::Join(PlatformThreadHandle thread_handle) { in Join() argument
228 CHECK_EQ(0, pthread_join(thread_handle.handle_, NULL)); in Join()
Dplatform_thread.h130 PlatformThreadHandle* thread_handle);
138 PlatformThreadHandle* thread_handle,
149 static void Join(PlatformThreadHandle thread_handle);
Dthread.h150 PlatformThreadHandle thread_handle() { return thread_; } in thread_handle() function
/external/chromium/chrome/browser/printing/
Dprint_job.cc304 HANDLE thread_handle = worker_->thread_handle(); in ControlledWorkerShutdown() local
305 for (; thread_handle;) { in ControlledWorkerShutdown()
308 DWORD result = MsgWaitForMultipleObjects(1, &thread_handle, in ControlledWorkerShutdown()
/external/chromium_org/base/win/
Dscoped_process_information_unittest.cc73 EXPECT_EQ(kThreadHandle, process_info.thread_handle()); in TEST_F()
95 EXPECT_EQ(NULL, process_info.thread_handle()); in TEST_F()
165 EXPECT_EQ(kThreadHandle, process_info.thread_handle()); in TEST_F()
Dscoped_process_information.h57 HANDLE thread_handle() const { in thread_handle() function
Dscoped_process_information.cc76 CheckAndDuplicateHandle(other.thread_handle(), &thread_handle_)) { in DuplicateFrom()
/external/chromium_org/chrome/browser/printing/
Dprint_job.cc336 HANDLE thread_handle = worker_->thread_handle().platform_handle(); in ControlledWorkerShutdown() local
337 for (; thread_handle;) { in ControlledWorkerShutdown()
340 DWORD result = MsgWaitForMultipleObjects(1, &thread_handle, in ControlledWorkerShutdown()
/external/chromium_org/net/test/embedded_test_server/
Dembedded_test_server_unittest.cc316 base::PlatformThreadHandle thread_handle; in TEST_P() local
320 ASSERT_TRUE(base::PlatformThread::Create(0, &delegate, &thread_handle)); in TEST_P()
321 base::PlatformThread::Join(thread_handle); in TEST_P()
/external/chromium_org/dbus/
Dtest_server.cc27 base::PlatformThread::Join(dbus_thread->thread_handle()); in main()
/external/chromium_org/sandbox/win/src/
Drestricted_token_utils.cc213 HANDLE temp_thread = process_info.thread_handle(); in StartRestrictedProcessInJob()
229 ::ResumeThread(process_info.thread_handle()); in StartRestrictedProcessInJob()
Dtarget_process.h90 return sandbox_process_info_.thread_handle(); in MainThread()
Dtarget_process.cc166 HANDLE temp_thread = process_info.thread_handle(); in Create()
179 if (!::GetThreadContext(process_info.thread_handle(), &context)) { in Create()
Dpolicy_target_test.cc252 EXPECT_EQ(1, ::ResumeThread(target.thread_handle())); in TEST()
315 EXPECT_EQ(1, ::ResumeThread(target.thread_handle())); in TEST()
/external/chromium_org/third_party/openssl/openssl/crypto/threads/
Dmttest.c767 HANDLE thread_handle[MAX_THREAD_NUMBER]; in do_threads() local
777 thread_handle[i]=CreateThread(NULL, in do_threads()
793 (CONST HANDLE *)&(thread_handle[i]),TRUE,INFINITE) in do_threads()
/external/openssl/crypto/threads/
Dmttest.c767 HANDLE thread_handle[MAX_THREAD_NUMBER]; in do_threads() local
777 thread_handle[i]=CreateThread(NULL, in do_threads()
793 (CONST HANDLE *)&(thread_handle[i]),TRUE,INFINITE) in do_threads()

12