Home
last modified time | relevance | path

Searched refs:PlatformThread (Results 1 – 25 of 91) sorted by relevance

1234

/external/chromium/base/synchronization/
Dlock_unittest.cc15 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 …]
Dlock.cc23 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()
Dwaitable_event_unittest.cc72 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/
Dplatform_thread_unittest.cc13 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 …]
Dplatform_thread_win.cc27 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()
Dplatform_thread_posix.cc41 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 …]
Dthread.cc74 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()
Dworker_pool_posix.cc53 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()
Dsimple_thread.cc31 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()
Dwatchdog_unittest.cc102 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()
Dthread_checker_impl.cc19 return valid_thread_id_ == PlatformThread::CurrentId(); in CalledOnValidThread()
31 valid_thread_id_ = PlatformThread::CurrentId(); in EnsureThreadIdAssigned()
Dwatchdog.cc26 init_successful_ = PlatformThread::Create(0, // Default stack size. in Watchdog()
41 PlatformThread::Join(handle_); in ~Watchdog()
126 PlatformThread::SetName(name.c_str()); in SetThreadName()
Dplatform_thread.h51 class BASE_API PlatformThread {
95 DISALLOW_IMPLICIT_CONSTRUCTORS(PlatformThread);
Dthread_unittest.cc38 base::PlatformThread::Sleep(msec_); in Run()
50 base::PlatformThread::Sleep(500); in Init()
177 base::PlatformThread::Sleep(10); in TEST_F()
/external/chromium/base/
Dtools_sanity_unittest.cc16 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()
Dshared_memory_unittest.cc25 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()
Dobserver_list_unittest.cc15 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/
DMachineStackMarker.cpp107 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/
Dstats_table_unittest.cc104 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/
Devent_sys_unittest.cc143 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/
Durl_request_job_manager.h87 allowed_thread_ = base::PlatformThread::CurrentId();
90 return allowed_thread_ == base::PlatformThread::CurrentId();
/external/chromium/chrome/browser/
Dbrowser_main_posix.cc76 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/
Durl_info_unittest.cc70 base::PlatformThread::Sleep(25); in TEST()
81 base::PlatformThread::Sleep(kMockExpirationTime + 20); in TEST()
/external/chromium/net/base/
Ddirectory_lister.cc75 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/
Ddevtools_remote_listen_socket_unittest.cc192 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

1234