/external/chromium/base/synchronization/ |
D | lock_unittest.cc | 15 class BasicLockTestThread : public PlatformThread::Delegate { 28 PlatformThread::Sleep(rand() % 20); in ThreadMain() 34 PlatformThread::Sleep(rand() % 20); in ThreadMain() 54 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() 65 PlatformThread::Sleep(rand() % 20); in TEST() 71 PlatformThread::Sleep(rand() % 20); in TEST() 78 PlatformThread::Sleep(rand() % 20); in TEST() 82 PlatformThread::Join(handle); in TEST() 90 class TryLockTestThread : public PlatformThread::Delegate { 120 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() [all …]
|
D | lock.cc | 23 DCHECK_EQ(owning_thread_id_, PlatformThread::CurrentId()); in AssertAcquired() 28 DCHECK_EQ(owning_thread_id_, PlatformThread::CurrentId()); in CheckHeldAndUnmark() 36 owning_thread_id_ = PlatformThread::CurrentId(); in CheckUnheldAndMark()
|
/external/sfntly/cpp/src/test/ |
D | lock_test.cc | 27 class BasicLockTestThread : public PlatformThread::Delegate { 40 PlatformThread::Sleep(rand() % 20); in ThreadMain() 46 PlatformThread::Sleep(rand() % 20); in ThreadMain() 66 EXPECT_TRUE(PlatformThread::Create(&thread, &handle)); in BasicLockTest() 77 PlatformThread::Sleep(rand() % 20); in BasicLockTest() 83 PlatformThread::Sleep(rand() % 20); in BasicLockTest() 90 PlatformThread::Sleep(rand() % 20); in BasicLockTest() 94 PlatformThread::Join(handle); in BasicLockTest() 104 class TryLockTestThread : public PlatformThread::Delegate { 134 EXPECT_TRUE(PlatformThread::Create(&thread, &handle)); in TryLockTest() [all …]
|
D | platform_thread.cc | 24 PlatformThread::Delegate* delegate = in ThreadFunc() 25 static_cast<PlatformThread::Delegate*>(params); in ThreadFunc() 31 bool PlatformThread::Create(Delegate* delegate, in Create() 43 void PlatformThread::Join(PlatformThreadHandle thread_handle) { in Join() 51 void PlatformThread::Sleep(int32_t duration_ms) { in Sleep() 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::Sleep(int32_t duration_ms) {
|
D | platform_thread.h | 43 class PlatformThread { 69 PlatformThread() {} in PlatformThread() function 70 NO_COPY_AND_ASSIGN(PlatformThread);
|
/external/chromium_org/base/synchronization/ |
D | lock_unittest.cc | 17 class BasicLockTestThread : public PlatformThread::Delegate { 30 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain() 36 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain() 56 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() 67 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST() 73 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST() 80 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST() 84 PlatformThread::Join(handle); in TEST() 92 class TryLockTestThread : public PlatformThread::Delegate { 122 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() [all …]
|
/external/chromium_org/third_party/sfntly/cpp/src/test/ |
D | lock_test.cc | 27 class BasicLockTestThread : public PlatformThread::Delegate { 40 PlatformThread::Sleep(rand() % 20); in ThreadMain() 46 PlatformThread::Sleep(rand() % 20); in ThreadMain() 66 EXPECT_TRUE(PlatformThread::Create(&thread, &handle)); in BasicLockTest() 77 PlatformThread::Sleep(rand() % 20); in BasicLockTest() 83 PlatformThread::Sleep(rand() % 20); in BasicLockTest() 90 PlatformThread::Sleep(rand() % 20); in BasicLockTest() 94 PlatformThread::Join(handle); in BasicLockTest() 104 class TryLockTestThread : public PlatformThread::Delegate { 134 EXPECT_TRUE(PlatformThread::Create(&thread, &handle)); in TryLockTest() [all …]
|
D | platform_thread.cc | 24 PlatformThread::Delegate* delegate = in ThreadFunc() 25 static_cast<PlatformThread::Delegate*>(params); in ThreadFunc() 31 bool PlatformThread::Create(Delegate* delegate, in Create() 43 void PlatformThread::Join(PlatformThreadHandle thread_handle) { in Join() 51 void PlatformThread::Sleep(int32_t duration_ms) { in Sleep() 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::Sleep(int32_t duration_ms) {
|
/external/chromium_org/base/threading/ |
D | platform_thread_unittest.cc | 14 class TrivialThread : public PlatformThread::Delegate { 35 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() 36 PlatformThread::Join(handle); in TEST() 47 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); in TEST() 49 PlatformThread::Join(handle[n]); in TEST() 61 thread_id_ = PlatformThread::CurrentId(); in ThreadMain() 62 PlatformThread::YieldCurrentThread(); in ThreadMain() 63 PlatformThread::Sleep(TimeDelta::FromMilliseconds(50)); in ThreadMain() 66 EXPECT_EQ(thread_id_, PlatformThread::CurrentId()); in ThreadMain() 80 PlatformThreadId main_thread_id = PlatformThread::CurrentId(); in TEST() [all …]
|
D | platform_thread_posix.cc | 50 PlatformThread::Delegate* delegate; 61 PlatformThread::Delegate* delegate = thread_params->delegate; in ThreadFunc() 66 PlatformThread::SetThreadPriority(PlatformThread::CurrentHandle(), in ThreadFunc() 73 PlatformThread::CurrentId()); in ThreadFunc() 77 PlatformThread::CurrentHandle().platform_handle(), in ThreadFunc() 78 PlatformThread::CurrentId()); in ThreadFunc() 83 PlatformThread::CurrentHandle().platform_handle(), in ThreadFunc() 84 PlatformThread::CurrentId()); in ThreadFunc() 91 PlatformThread::Delegate* delegate, in CreateThread() 144 PlatformThreadId PlatformThread::CurrentId() { in CurrentId() [all …]
|
D | platform_thread_win.cc | 47 PlatformThread::Delegate* delegate; 53 PlatformThread::Delegate* delegate = thread_params->delegate; in ThreadFunc() 71 PlatformThread::CurrentId()); in ThreadFunc() 78 PlatformThread::CurrentId()); in ThreadFunc() 86 PlatformThread::Delegate* delegate, in CreateThreadInternal() 121 PlatformThreadId PlatformThread::CurrentId() { in CurrentId() 126 PlatformThreadHandle PlatformThread::CurrentHandle() { in CurrentHandle() 132 void PlatformThread::YieldCurrentThread() { in YieldCurrentThread() 137 void PlatformThread::Sleep(TimeDelta duration) { in Sleep() 147 void PlatformThread::SetName(const char* name) { in SetName() [all …]
|
D | thread_id_name_manager_unittest.cc | 68 base::PlatformThreadId a_id = base::PlatformThread::CurrentId(); in TEST_F() 69 base::PlatformThread::SetName("First Name"); in TEST_F() 72 base::PlatformThread::SetName("New name"); in TEST_F() 74 base::PlatformThread::SetName(""); in TEST_F() 80 base::PlatformThreadId a_id = base::PlatformThread::CurrentId(); in TEST_F() 81 base::PlatformThread::SetName("Test Name"); in TEST_F() 84 base::PlatformThread::SetName("New name"); in TEST_F() 87 base::PlatformThread::SetName("Test Name"); in TEST_F() 90 base::PlatformThread::SetName(""); in TEST_F()
|
D | platform_thread_android.cc | 58 void PlatformThread::SetThreadPriority(PlatformThreadHandle handle, in SetThreadPriority() 64 Java_ThreadUtils_setThreadPriorityAudio(env, PlatformThread::CurrentId()); in SetThreadPriority() 78 void PlatformThread::SetName(const char* name) { in SetName() 86 if (PlatformThread::CurrentId() == getpid()) in SetName() 102 PlatformThread::SetThreadPriority(PlatformThread::CurrentHandle(), in InitOnThread()
|
D | thread.cc | 106 if (!PlatformThread::Create(options.stack_size, this, &thread_)) { in StartWithOptions() 135 PlatformThread::Join(thread_); in Stop() 151 DCHECK_NE(ANNOTATE_UNPROTECTED_READ(thread_id_), PlatformThread::CurrentId()); in StopSoon() 168 PlatformThread::SetThreadPriority(thread_, priority); in SetPriority() 201 thread_id_ = PlatformThread::CurrentId(); in ThreadMain() 202 PlatformThread::SetName(name_.c_str()); in ThreadMain()
|
/external/chromium/base/threading/ |
D | platform_thread_unittest.cc | 13 class TrivialThread : public PlatformThread::Delegate { 34 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() 35 PlatformThread::Join(handle); in TEST() 46 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); in TEST() 48 PlatformThread::Join(handle[n]); in TEST() 60 thread_id_ = PlatformThread::CurrentId(); in ThreadMain() 61 PlatformThread::YieldCurrentThread(); in ThreadMain() 62 PlatformThread::Sleep(50); in ThreadMain() 76 PlatformThreadId main_thread_id = PlatformThread::CurrentId(); in TEST() 82 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() [all …]
|
D | platform_thread_win.cc | 27 PlatformThread::Delegate* delegate; 33 PlatformThread::Delegate* delegate = thread_params->delegate; in ThreadFunc() 45 PlatformThread::Delegate* delegate, in CreateThreadInternal() 81 PlatformThreadId PlatformThread::CurrentId() { in CurrentId() 86 void PlatformThread::YieldCurrentThread() { in YieldCurrentThread() 91 void PlatformThread::Sleep(int duration_ms) { in Sleep() 96 void PlatformThread::SetName(const char* name) { in SetName() 116 bool PlatformThread::Create(size_t stack_size, Delegate* delegate, in Create() 123 bool PlatformThread::CreateNonJoinable(size_t stack_size, Delegate* delegate) { in CreateNonJoinable() 128 void PlatformThread::Join(PlatformThreadHandle thread_handle) { in Join()
|
D | platform_thread_posix.cc | 41 PlatformThread::Delegate* delegate; 47 PlatformThread::Delegate* delegate = thread_params->delegate; in ThreadFunc() 56 PlatformThread::Delegate* delegate, in CreateThread() 120 PlatformThreadId PlatformThread::CurrentId() { in CurrentId() 136 void PlatformThread::YieldCurrentThread() { in YieldCurrentThread() 141 void PlatformThread::Sleep(int duration_ms) { in Sleep() 161 void PlatformThread::SetName(const char* name) { 192 void PlatformThread::SetName(const char* /*name*/) { in SetName() 201 bool PlatformThread::Create(size_t stack_size, Delegate* delegate, in Create() 208 bool PlatformThread::CreateNonJoinable(size_t stack_size, Delegate* delegate) { in CreateNonJoinable() [all …]
|
D | thread.cc | 74 if (!PlatformThread::Create(options.stack_size, this, &thread_)) { in StartWithOptions() 102 PlatformThread::Join(thread_); in Stop() 118 DCHECK_NE(ANNOTATE_UNPROTECTED_READ(thread_id_), PlatformThread::CurrentId()); in StopSoon() 149 thread_id_ = PlatformThread::CurrentId(); in ThreadMain() 150 PlatformThread::SetName(name_.c_str()); in ThreadMain()
|
/external/chromium_org/base/ |
D | tools_sanity_unittest.cc | 192 class TOOLS_SANITY_TEST_CONCURRENT_THREAD : public PlatformThread::Delegate { 202 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in ThreadMain() 208 class ReleaseStoreThread : public PlatformThread::Delegate { 218 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in ThreadMain() 224 class AcquireLoadThread : public PlatformThread::Delegate { 230 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in ThreadMain() 237 void RunInParallel(PlatformThread::Delegate *d1, PlatformThread::Delegate *d2) { in RunInParallel() 240 PlatformThread::Create(0, d1, &a); in RunInParallel() 241 PlatformThread::Create(0, d2, &b); in RunInParallel() 242 PlatformThread::Join(a); in RunInParallel() [all …]
|
/external/chromium/base/ |
D | tools_sanity_unittest.cc | 16 class TOOLS_SANITY_TEST_CONCURRENT_THREAD : public PlatformThread::Delegate { 26 PlatformThread::Sleep(100); in ThreadMain() 120 PlatformThread::Delegate *thread1 = in TEST() 122 PlatformThread::Delegate *thread2 = in TEST() 125 PlatformThread::Create(0, thread1, &a); in TEST() 126 PlatformThread::Create(0, thread2, &b); in TEST() 127 PlatformThread::Join(a); in TEST() 128 PlatformThread::Join(b); in TEST()
|
/external/chromium_org/chrome_frame/ |
D | bind_status_callback_impl.cc | 80 << base::StringPrintf(" tid=%i", base::PlatformThread::CurrentId()); in OnStartBinding() 89 << base::StringPrintf(" tid=%i", base::PlatformThread::CurrentId()); in GetPriority() 98 << base::StringPrintf(" tid=%i", base::PlatformThread::CurrentId()); in OnLowResource() 109 base::PlatformThread::CurrentId(), in OnProgress() 120 base::PlatformThread::CurrentId()); in OnStopBinding() 129 << base::StringPrintf(" tid=%i", base::PlatformThread::CurrentId()); in GetBindInfo() 139 << base::StringPrintf(" tid=%i", base::PlatformThread::CurrentId()); in OnDataAvailable() 148 << base::StringPrintf(" tid=%i", base::PlatformThread::CurrentId()); in OnObjectAvailable() 159 << base::StringPrintf(" tid=%i", base::PlatformThread::CurrentId()); in GetBindInfoEx() 174 << base::StringPrintf(" tid=%i", base::PlatformThread::CurrentId()); in BeginningTransaction() [all …]
|
/external/chromium_org/mojo/system/ |
D | waiter_list_unittest.cc | 54 base::PlatformThread::Sleep( in TEST() 97 base::PlatformThread::Sleep( in TEST() 139 base::PlatformThread::Sleep( in TEST() 163 base::PlatformThread::Sleep( in TEST() 179 base::PlatformThread::Sleep( in TEST() 199 base::PlatformThread::Sleep( in TEST() 215 base::PlatformThread::Sleep( in TEST() 227 base::PlatformThread::Sleep( in TEST() 236 base::PlatformThread::Sleep( in TEST() 247 base::PlatformThread::Sleep( in TEST()
|
/external/chromium_org/chrome/browser/usb/ |
D | usb_context.cc | 17 class UsbContext::UsbEventHandler : public base::PlatformThread::Delegate { 38 bool success = base::PlatformThread::Create(0, this, &thread_handle_); in UsbEventHandler() 48 base::PlatformThread::Join(thread_handle_); in ~UsbEventHandler() 52 base::PlatformThread::SetName("UsbEventHandler"); in ThreadMain()
|
/external/chromium_org/ppapi/proxy/ |
D | ppb_var_unittest.cc | 92 class CreateVarThreadDelegate : public base::PlatformThread::Delegate { 122 class ChangeRefVarThreadDelegate : public base::PlatformThread::Delegate { 150 class RemoveRefVarThreadDelegate : public base::PlatformThread::Delegate { 189 base::PlatformThread::Create(0, &create_var_delegates[i], in TEST_F() 192 base::PlatformThread::Join(create_var_threads[i]); in TEST_F() 202 base::PlatformThread::Create(0, &change_ref_var_delegates[i], in TEST_F() 206 base::PlatformThread::Join(change_ref_var_threads[i]); in TEST_F() 225 base::PlatformThread::Create(0, &remove_ref_var_delegates[i], in TEST_F() 229 base::PlatformThread::Join(remove_ref_var_threads[i]); in TEST_F()
|
/external/chromium_org/media/audio/ |
D | audio_device_thread.cc | 17 using base::PlatformThread; 26 : public PlatformThread::Delegate, 116 PlatformThread::CreateWithPriority(0, this, &thread_, in Start() 135 base::Bind(&base::PlatformThread::Join, thread)); in Stop() 137 base::PlatformThread::Join(thread); in Stop() 143 PlatformThread::SetName(thread_name_); in ThreadMain()
|