Home
last modified time | relevance | path

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

12345

/external/sfntly/cpp/src/test/
Dlock_test.cc27 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 …]
Dplatform_thread.cc24 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) {
Dplatform_thread.h43 class PlatformThread {
69 PlatformThread() {} in PlatformThread() function
70 NO_COPY_AND_ASSIGN(PlatformThread);
/external/libchrome/base/synchronization/
Dlock_unittest.cc18 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 …]
Dwaitable_event_unittest.cc81 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()
Dlock.cc23 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/
Dplatform_thread_posix.cc42 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 …]
Dplatform_thread_unittest.cc28 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 …]
Dthread_id_name_manager_unittest.cc68 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()
Dsimple_thread.cc43 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()
Dthread.cc118 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()
Dworker_pool_posix.cc63 class WorkerThread : public PlatformThread::Delegate {
81 PlatformThread::CurrentId()); in ThreadMain()
83 PlatformThread::SetName(name); in ThreadMain()
162 PlatformThread::CreateNonJoinable(0, worker); in AddTask()
Dthread_checker_impl.cc19 return valid_thread_id_ == PlatformThread::CurrentRef(); in CalledOnValidThread()
30 valid_thread_id_ = PlatformThread::CurrentRef(); in EnsureThreadIdAssigned()
Dplatform_thread_linux.cc69 void PlatformThread::SetName(const std::string& name) { in SetName()
78 if (PlatformThread::CurrentId() == getpid()) in SetName()
/external/webrtc/webrtc/base/
Dplatform_thread.cc94 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 …]
Dplatform_thread.h57 class PlatformThread {
59 PlatformThread(ThreadRunFunction func, void* obj, const char* thread_name);
60 virtual ~PlatformThread();
95 RTC_DISALLOW_COPY_AND_ASSIGN(PlatformThread);
Dplatform_thread_unittest.cc26 rtc::PlatformThread thread(&NullRunFunction, nullptr, "PlatformThreadTest"); in TEST()
41 rtc::PlatformThread thread(&SetFlagRunFunction, &flag, "RunFunctionIsCalled"); in TEST()
/external/libchrome/base/process/
Dkill_posix.cc117 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/
Dobserver_list_threadsafe.h122 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/
Ddbus_statistics.cc67 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/
Dmessage_loop_task_runner.cc22 valid_thread_id_ = PlatformThread::CurrentId(); in BindToCurrentThread()
43 return valid_thread_id_ == PlatformThread::CurrentId(); in RunsTasksOnCurrentThread()
/external/webrtc/webrtc/system_wrappers/source/
Dcritical_section_unittest.cc81 rtc::PlatformThread thread( in TEST_F()
108 rtc::PlatformThread thread( in TEST_F()
/external/libchrome/base/trace_event/
Dtrace_sampling_thread.cc35 PlatformThread::SetName("Sampling Thread"); in ThreadMain()
39 PlatformThread::Sleep( in ThreadMain()
Dmalloc_dump_provider.cc176 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/
Dfile_audio_device.h24 class PlatformThread; variable
185 rtc::scoped_ptr<rtc::PlatformThread> _ptrThreadRec;
186 rtc::scoped_ptr<rtc::PlatformThread> _ptrThreadPlay;

12345