/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/libchrome/base/synchronization/ |
D | lock_unittest.cc | 18 class BasicLockTestThread : public PlatformThread::Delegate { 31 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain() 37 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain() 57 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() 68 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST() 74 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST() 81 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST() 85 PlatformThread::Join(handle); in TEST() 93 class TryLockTestThread : public PlatformThread::Delegate { 123 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() [all …]
|
D | waitable_event_unittest.cc | 81 class WaitableEventSignaler : public PlatformThread::Delegate { 89 PlatformThread::Sleep(delay_); in ThreadMain() 107 PlatformThread::Create(0, &signaler, &thread); in TEST() 112 PlatformThread::Join(thread); in TEST() 126 PlatformThread::Create(0, &signaler, &thread); in TEST() 133 PlatformThread::Join(thread); in TEST() 154 PlatformThread::Create(0, &signaler, &thread); in TEST() 160 PlatformThread::Join(thread); in TEST()
|
D | lock.cc | 23 DCHECK(owning_thread_ref_ == PlatformThread::CurrentRef()); in AssertAcquired() 27 DCHECK(owning_thread_ref_ == PlatformThread::CurrentRef()); in CheckHeldAndUnmark() 33 owning_thread_ref_ = PlatformThread::CurrentRef(); in CheckUnheldAndMark()
|
/external/libchrome/base/threading/ |
D | platform_thread_posix.cc | 42 PlatformThread::Delegate* delegate; 48 PlatformThread::Delegate* delegate = nullptr; in ThreadFunc() 62 PlatformThread::SetCurrentThreadPriority(thread_params->priority); in ThreadFunc() 67 PlatformThread::CurrentHandle().platform_handle(), in ThreadFunc() 68 PlatformThread::CurrentId()); in ThreadFunc() 73 PlatformThread::CurrentHandle().platform_handle(), in ThreadFunc() 74 PlatformThread::CurrentId()); in ThreadFunc() 82 PlatformThread::Delegate* delegate, in CreateThread() 130 PlatformThreadId PlatformThread::CurrentId() { in CurrentId() 152 PlatformThreadRef PlatformThread::CurrentRef() { in CurrentRef() [all …]
|
D | platform_thread_unittest.cc | 28 class TrivialThread : public PlatformThread::Delegate { 50 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() 51 PlatformThread::Join(handle); in TEST() 62 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); in TEST() 64 PlatformThread::Join(handle[n]); in TEST() 77 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST() 78 PlatformThread::Detach(handle); in TEST() 89 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); in TEST() 90 PlatformThread::Detach(handle[n]); in TEST() 100 class FunctionTestThread : public PlatformThread::Delegate { [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 | simple_thread.cc | 43 success = PlatformThread::Create(options_.stack_size(), this, &thread_); in Start() 45 success = PlatformThread::CreateWithPriority(options_.stack_size(), this, in Start() 56 PlatformThread::Join(thread_); in Join() 66 tid_ = PlatformThread::CurrentId(); in ThreadMain() 70 PlatformThread::SetName(name_); in ThreadMain()
|
D | thread.cc | 118 if (!PlatformThread::CreateWithPriority(options.stack_size, this, &thread_, in StartWithOptions() 162 PlatformThread::Join(thread_); in Stop() 174 DCHECK_NE(GetThreadId(), PlatformThread::CurrentId()); in StopSoon() 222 id_ = PlatformThread::CurrentId(); in ThreadMain() 227 PlatformThread::SetName(name_.c_str()); in ThreadMain()
|
D | worker_pool_posix.cc | 63 class WorkerThread : public PlatformThread::Delegate { 81 PlatformThread::CurrentId()); in ThreadMain() 83 PlatformThread::SetName(name); in ThreadMain() 162 PlatformThread::CreateNonJoinable(0, worker); in AddTask()
|
D | thread_checker_impl.cc | 19 return valid_thread_id_ == PlatformThread::CurrentRef(); in CalledOnValidThread() 30 valid_thread_id_ = PlatformThread::CurrentRef(); in EnsureThreadIdAssigned()
|
D | platform_thread_linux.cc | 69 void PlatformThread::SetName(const std::string& name) { in SetName() 78 if (PlatformThread::CurrentId() == getpid()) in SetName()
|
/external/webrtc/webrtc/base/ |
D | platform_thread.cc | 94 PlatformThread::PlatformThread(ThreadRunFunction func, in PlatformThread() function in rtc::PlatformThread 111 PlatformThread::~PlatformThread() { in PlatformThread() 119 DWORD WINAPI PlatformThread::StartThread(void* param) { in PlatformThread() 120 static_cast<PlatformThread*>(param)->Run(); in PlatformThread() 124 void* PlatformThread::StartThread(void* param) { in PlatformThread() 125 static_cast<PlatformThread*>(param)->Run(); in PlatformThread() 130 void PlatformThread::Start() { in PlatformThread() 151 bool PlatformThread::IsRunning() const { in PlatformThread() 160 void PlatformThread::Stop() { in PlatformThread() 178 void PlatformThread::Run() { in PlatformThread() [all …]
|
D | platform_thread.h | 57 class PlatformThread { 59 PlatformThread(ThreadRunFunction func, void* obj, const char* thread_name); 60 virtual ~PlatformThread(); 95 RTC_DISALLOW_COPY_AND_ASSIGN(PlatformThread);
|
D | platform_thread_unittest.cc | 26 rtc::PlatformThread thread(&NullRunFunction, nullptr, "PlatformThreadTest"); in TEST() 41 rtc::PlatformThread thread(&SetFlagRunFunction, &flag, "RunFunctionIsCalled"); in TEST()
|
/external/libchrome/base/process/ |
D | kill_posix.cc | 117 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in WaitForProcessesToExit() 154 class BackgroundReaper : public PlatformThread::Delegate { 183 PlatformThread::Sleep(TimeDelta::FromMilliseconds(500)); in WaitForChildToDie() 217 PlatformThread::CreateNonJoinable(0, reaper); in EnsureProcessTerminated() 226 PlatformThread::CreateNonJoinable(0, reaper); in EnsureProcessGetsReaped()
|
/external/libchrome/base/ |
D | observer_list_threadsafe.h | 122 PlatformThreadId thread_id = PlatformThread::CurrentId(); in AddObserver() 140 PlatformThreadId thread_id = PlatformThread::CurrentId(); in RemoveObserver() 225 observer_lists_.find(PlatformThread::CurrentId()); 250 observer_lists_.find(PlatformThread::CurrentId());
|
/external/libchrome/dbus/ |
D | dbus_statistics.cc | 67 origin_thread_id_(base::PlatformThread::CurrentId()) { in DBusStatistics() 71 DCHECK_EQ(origin_thread_id_, base::PlatformThread::CurrentId()); in ~DBusStatistics() 87 if (base::PlatformThread::CurrentId() != origin_thread_id_) { in AddStat() 89 << base::PlatformThread::CurrentId(); in AddStat() 110 DCHECK_EQ(origin_thread_id_, base::PlatformThread::CurrentId()); in GetStat()
|
/external/libchrome/base/message_loop/ |
D | message_loop_task_runner.cc | 22 valid_thread_id_ = PlatformThread::CurrentId(); in BindToCurrentThread() 43 return valid_thread_id_ == PlatformThread::CurrentId(); in RunsTasksOnCurrentThread()
|
/external/webrtc/webrtc/system_wrappers/source/ |
D | critical_section_unittest.cc | 81 rtc::PlatformThread thread( in TEST_F() 108 rtc::PlatformThread thread( in TEST_F()
|
/external/libchrome/base/trace_event/ |
D | trace_sampling_thread.cc | 35 PlatformThread::SetName("Sampling Thread"); in ThreadMain() 39 PlatformThread::Sleep( in ThreadMain()
|
D | malloc_dump_provider.cc | 176 tid_dumping_heap_ = PlatformThread::CurrentId(); in OnMemoryDump() 226 tid_dumping_heap_ == PlatformThread::CurrentId()) in InsertAllocation() 249 tid_dumping_heap_ == PlatformThread::CurrentId()) in RemoveAllocation()
|
/external/webrtc/webrtc/modules/audio_device/dummy/ |
D | file_audio_device.h | 24 class PlatformThread; variable 185 rtc::scoped_ptr<rtc::PlatformThread> _ptrThreadRec; 186 rtc::scoped_ptr<rtc::PlatformThread> _ptrThreadPlay;
|