/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()
|
D | waitable_event_unittest.cc | 72 class WaitableEventSignaler : public PlatformThread::Delegate { 80 PlatformThread::Sleep(static_cast<int>(seconds_ * 1000)); in ThreadMain() 96 PlatformThread::Create(0, &signaler, &thread); in TEST() 100 PlatformThread::Join(thread); in TEST()
|
/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()
|
D | worker_pool_posix.cc | 53 class WorkerThread : public PlatformThread::Delegate { 73 "%s/%d", name_prefix_.c_str(), PlatformThread::CurrentId()); in ThreadMain() 74 PlatformThread::SetName(name.c_str()); in ThreadMain() 138 PlatformThread::CreateNonJoinable(kWorkerThreadStackSize, worker); in PostTask()
|
D | simple_thread.cc | 31 bool success = PlatformThread::Create(options_.stack_size(), this, &thread_); in Start() 39 PlatformThread::Join(thread_); in Join() 44 tid_ = PlatformThread::CurrentId(); in ThreadMain() 48 PlatformThread::SetName(name_.c_str()); in ThreadMain()
|
D | watchdog_unittest.cc | 102 PlatformThread::Sleep(500); in TEST_F() 112 PlatformThread::Sleep(100); // Sleep a bit, but not past the alarm point. in TEST_F() 127 PlatformThread::Sleep(1000); in TEST_F()
|
D | thread_checker_impl.cc | 19 return valid_thread_id_ == PlatformThread::CurrentId(); in CalledOnValidThread() 31 valid_thread_id_ = PlatformThread::CurrentId(); in EnsureThreadIdAssigned()
|
D | watchdog.cc | 26 init_successful_ = PlatformThread::Create(0, // Default stack size. in Watchdog() 41 PlatformThread::Join(handle_); in ~Watchdog() 126 PlatformThread::SetName(name.c_str()); in SetThreadName()
|
D | platform_thread.h | 51 class BASE_API PlatformThread { 95 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread);
|
D | thread_unittest.cc | 38 base::PlatformThread::Sleep(msec_); in Run() 50 base::PlatformThread::Sleep(500); in Init() 177 base::PlatformThread::Sleep(10); in TEST_F()
|
/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()
|
D | shared_memory_unittest.cc | 25 class MultipleThreadMain : public PlatformThread::Delegate { 49 PlatformThread::Sleep(1); // Short wait. in ThreadMain() 75 class MultipleLockThread : public PlatformThread::Delegate { 102 PlatformThread::Sleep(1); // Short wait. in ThreadMain() 243 EXPECT_TRUE(PlatformThread::Create(0, thread_delegates[index], &pth)); in TEST() 249 PlatformThread::Join(thread_handles[index]); in TEST() 272 EXPECT_TRUE(PlatformThread::Create(0, thread_delegates[index], &pth)); in TEST() 278 PlatformThread::Join(thread_handles[index]); in TEST() 357 PlatformThread::Sleep(10); // Short wait. in TaskTestMain()
|
D | observer_list_unittest.cc | 15 using base::PlatformThread; 92 class AddRemoveThread : public PlatformThread::Delegate, 295 EXPECT_TRUE(PlatformThread::Create(0, in ThreadSafeObserverHarness() 311 PlatformThread::Join(threads[index]); in ThreadSafeObserverHarness()
|
/external/webkit/Source/JavaScriptCore/heap/ |
D | MachineStackMarker.cpp | 107 typedef mach_port_t PlatformThread; typedef 109 typedef HANDLE PlatformThread; typedef 111 typedef pthread_t PlatformThread; typedef 125 Thread(pthread_t pthread, const PlatformThread& platThread, void* base) in Thread() 146 PlatformThread platformThread; 180 static inline PlatformThread getCurrentPlatformThread() in getCurrentPlatformThread() 282 static inline void suspendThread(const PlatformThread& platformThread) in suspendThread() 295 static inline void resumeThread(const PlatformThread& platformThread) in resumeThread() 334 static size_t getPlatformThreadRegisters(const PlatformThread& platformThread, PlatformThreadRegist… in getPlatformThreadRegisters()
|
/external/chromium/base/metrics/ |
D | stats_table_unittest.cc | 104 PlatformThread::Sleep(index % 10); // short wait in Run() 183 PlatformThread::Sleep(index % 10); // short wait in MULTIPROCESS_TEST_MAIN() 322 PlatformThread::Sleep(kRunMs); in TEST_F() 329 PlatformThread::Sleep(kRunMs); in TEST_F() 355 PlatformThread::Sleep(kRunMs); in TEST_F() 362 PlatformThread::Sleep(kRunMs); in TEST_F() 392 PlatformThread::Sleep(kRunMs); in TEST_F() 402 PlatformThread::Sleep(kRunMs); in TEST_F()
|
/external/chromium/chrome/common/deprecated/ |
D | event_sys_unittest.cc | 143 public base::PlatformThread::Delegate { 153 base::PlatformThread::Join(threads_[i].thread); in ~ThreadTester() 176 ASSERT_TRUE(base::PlatformThread::Create(0, this, &info.thread)); in Go() 219 base::PlatformThread::YieldCurrentThread(); in HandleEvent()
|
/external/chromium/net/url_request/ |
D | url_request_job_manager.h | 87 allowed_thread_ = base::PlatformThread::CurrentId(); 90 return allowed_thread_ == base::PlatformThread::CurrentId();
|
/external/chromium/chrome/browser/ |
D | browser_main_posix.cc | 76 class ShutdownDetector : public base::PlatformThread::Delegate { 115 base::PlatformThread::SetName("CrShutdownDetector"); in ThreadMain() 251 if (!base::PlatformThread::CreateNonJoinable( in PostMainMessageLoopStart()
|
/external/chromium/chrome/browser/net/ |
D | url_info_unittest.cc | 70 base::PlatformThread::Sleep(25); in TEST() 81 base::PlatformThread::Sleep(kMockExpirationTime + 20); in TEST()
|
/external/chromium/net/base/ |
D | directory_lister.cc | 75 if (!base::PlatformThread::Create(0, this, &thread_)) { in Start() 90 base::PlatformThread::Join(thread_); in Cancel() 157 base::PlatformThread::Join(thread_); in ~DirectoryLister()
|
/external/chromium/chrome/browser/debugger/ |
D | devtools_remote_listen_socket_unittest.cc | 192 base::PlatformThread::Sleep(1); // 1MS sleep in NextAction() 225 base::PlatformThread::Sleep(1); 293 base::PlatformThread::Sleep(10); 344 base::PlatformThread::Sleep(10); // sleep for 10ms
|