/external/chromium_org/third_party/sfntly/cpp/src/test/ |
H A D | platform_thread.cc | 24 PlatformThread::Delegate* delegate = 25 static_cast<PlatformThread::Delegate*>(params); 31 bool PlatformThread::Create(Delegate* delegate, 43 void PlatformThread::Join(PlatformThreadHandle thread_handle) { 51 void PlatformThread::Sleep(int32_t duration_ms) { 58 PlatformThread::Delegate* delegate = 59 static_cast<PlatformThread::Delegate*>(params); 65 bool PlatformThread::Create(Delegate* delegate, 79 void PlatformThread::Join(PlatformThreadHandle thread_handle) { 85 void PlatformThread [all...] |
H A D | lock_test.cc | 27 class BasicLockTestThread : public PlatformThread::Delegate { 40 PlatformThread::Sleep(rand() % 20); 46 PlatformThread::Sleep(rand() % 20); 66 EXPECT_TRUE(PlatformThread::Create(&thread, &handle)); 77 PlatformThread::Sleep(rand() % 20); 83 PlatformThread::Sleep(rand() % 20); 90 PlatformThread::Sleep(rand() % 20); 94 PlatformThread::Join(handle); 104 class TryLockTestThread : public PlatformThread::Delegate { 134 EXPECT_TRUE(PlatformThread [all...] |
H A D | platform_thread.h | 43 class PlatformThread { class in namespace:sfntly 69 PlatformThread() {} function in class:sfntly::PlatformThread 70 NO_COPY_AND_ASSIGN(PlatformThread);
|
/external/sfntly/cpp/src/test/ |
H A D | platform_thread.cc | 24 PlatformThread::Delegate* delegate = 25 static_cast<PlatformThread::Delegate*>(params); 31 bool PlatformThread::Create(Delegate* delegate, 43 void PlatformThread::Join(PlatformThreadHandle thread_handle) { 51 void PlatformThread::Sleep(int32_t duration_ms) { 58 PlatformThread::Delegate* delegate = 59 static_cast<PlatformThread::Delegate*>(params); 65 bool PlatformThread::Create(Delegate* delegate, 79 void PlatformThread::Join(PlatformThreadHandle thread_handle) { 85 void PlatformThread [all...] |
H A D | lock_test.cc | 27 class BasicLockTestThread : public PlatformThread::Delegate { 40 PlatformThread::Sleep(rand() % 20); 46 PlatformThread::Sleep(rand() % 20); 66 EXPECT_TRUE(PlatformThread::Create(&thread, &handle)); 77 PlatformThread::Sleep(rand() % 20); 83 PlatformThread::Sleep(rand() % 20); 90 PlatformThread::Sleep(rand() % 20); 94 PlatformThread::Join(handle); 104 class TryLockTestThread : public PlatformThread::Delegate { 134 EXPECT_TRUE(PlatformThread [all...] |
H A D | platform_thread.h | 43 class PlatformThread { class in namespace:sfntly 69 PlatformThread() {} function in class:sfntly::PlatformThread 70 NO_COPY_AND_ASSIGN(PlatformThread);
|
/external/chromium_org/base/threading/ |
H A D | platform_thread_unittest.cc | 14 class TrivialThread : public PlatformThread::Delegate { 35 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); 36 PlatformThread::Join(handle); 47 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); 49 PlatformThread::Join(handle[n]); 61 thread_id_ = PlatformThread::CurrentId(); 62 PlatformThread::YieldCurrentThread(); 63 PlatformThread::Sleep(TimeDelta::FromMilliseconds(50)); 66 EXPECT_EQ(thread_id_, PlatformThread::CurrentId()); 80 PlatformThreadId main_thread_id = PlatformThread [all...] |
H A D | platform_thread_posix.cc | 50 PlatformThread::Delegate* delegate; 61 PlatformThread::Delegate* delegate = thread_params->delegate; 66 PlatformThread::SetThreadPriority(PlatformThread::CurrentHandle(), 73 PlatformThread::CurrentId()); 77 PlatformThread::CurrentHandle().platform_handle(), 78 PlatformThread::CurrentId()); 83 PlatformThread::CurrentHandle().platform_handle(), 84 PlatformThread::CurrentId()); 91 PlatformThread [all...] |
H A D | platform_thread_android.cc | 58 void PlatformThread::SetThreadPriority(PlatformThreadHandle handle, 64 Java_ThreadUtils_setThreadPriorityAudio(env, PlatformThread::CurrentId()); 76 const PlatformThreadId current_id = PlatformThread::CurrentId(); 84 void PlatformThread::SetName(const char* name) { 92 if (PlatformThread::CurrentId() == getpid()) 108 PlatformThread::SetThreadPriority(PlatformThread::CurrentHandle(),
|
H A D | platform_thread_win.cc | 47 PlatformThread::Delegate* delegate; 53 PlatformThread::Delegate* delegate = thread_params->delegate; 74 PlatformThread::CurrentId()); 83 PlatformThread::CurrentId()); 89 // CreateThreadInternal() matches PlatformThread::Create(), except that 93 PlatformThread::Delegate* delegate, 128 PlatformThreadId PlatformThread::CurrentId() { 133 PlatformThreadRef PlatformThread::CurrentRef() { 138 PlatformThreadHandle PlatformThread::CurrentHandle() { 144 void PlatformThread [all...] |
H A D | thread_checker_impl.cc | 19 return valid_thread_id_ == PlatformThread::CurrentRef(); 30 valid_thread_id_ = PlatformThread::CurrentRef();
|
H A D | thread_id_name_manager_unittest.cc | 68 base::PlatformThreadId a_id = base::PlatformThread::CurrentId(); 69 base::PlatformThread::SetName("First Name"); 72 base::PlatformThread::SetName("New name"); 74 base::PlatformThread::SetName(""); 80 base::PlatformThreadId a_id = base::PlatformThread::CurrentId(); 81 base::PlatformThread::SetName("Test Name"); 84 base::PlatformThread::SetName("New name"); 87 base::PlatformThread::SetName("Test Name"); 90 base::PlatformThread::SetName("");
|
H A D | platform_thread_linux.cc | 49 void PlatformThread::SetName(const char* name) { 58 if (PlatformThread::CurrentId() == getpid()) 74 void PlatformThread::SetThreadPriority(PlatformThreadHandle handle, 93 const PlatformThreadId current_id = PlatformThread::CurrentId();
|
/external/chromium_org/base/synchronization/ |
H A D | lock.cc | 24 DCHECK(owning_thread_ref_ == PlatformThread::CurrentRef()); 28 DCHECK(owning_thread_ref_ == PlatformThread::CurrentRef()); 34 owning_thread_ref_ = PlatformThread::CurrentRef();
|
H A D | lock_unittest.cc | 17 class BasicLockTestThread : public PlatformThread::Delegate { 30 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); 36 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); 56 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); 67 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); 73 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); 80 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); 84 PlatformThread::Join(handle); 92 class TryLockTestThread : public PlatformThread::Delegate { 122 ASSERT_TRUE(PlatformThread [all...] |
H A D | cancellation_flag.cc | 13 DCHECK_EQ(set_on_, PlatformThread::CurrentId());
|
H A D | cancellation_flag.h | 23 set_on_ = PlatformThread::CurrentId();
|
H A D | waitable_event_unittest.cc | 74 class WaitableEventSignaler : public PlatformThread::Delegate { 82 PlatformThread::Sleep(TimeDelta::FromSecondsD(seconds_)); 100 PlatformThread::Create(0, &signaler, &thread); 105 PlatformThread::Join(thread); 119 PlatformThread::Create(0, &signaler, &thread); 126 PlatformThread::Join(thread);
|
/external/chromium_org/base/memory/ |
H A D | singleton.cc | 27 PlatformThread::YieldCurrentThread();
|
/external/chromium_org/base/test/ |
H A D | test_file_util.cc | 18 PlatformThread::Sleep(kDelay);
|
/external/chromium_org/components/nacl/loader/nonsfi/ |
H A D | nonsfi_main.cc | 25 class PluginMainDelegate : public base::PlatformThread::Delegate { 35 base::PlatformThread::SetName("NaClMainThread"); 85 if (!base::PlatformThread::CreateNonJoinable(
|
/external/chromium_org/base/debug/ |
H A D | debugger.cc | 27 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100));
|
/external/chromium_org/device/usb/ |
H A D | usb_context.cc | 20 class UsbContext::UsbEventHandler : public base::PlatformThread::Delegate { 25 // base::PlatformThread::Delegate 39 bool success = base::PlatformThread::Create(0, this, &thread_handle_); 47 base::PlatformThread::Join(thread_handle_); 51 base::PlatformThread::SetName("UsbEventHandler");
|
/external/chromium_org/base/message_loop/ |
H A D | message_loop_proxy_impl.cc | 18 valid_thread_id_(PlatformThread::CurrentId()) { 38 return valid_thread_id_ == PlatformThread::CurrentId();
|
/external/chromium_org/base/ |
H A D | lazy_instance.cc | 34 PlatformThread::YieldCurrentThread();
|