Home
last modified time | relevance | path

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

12345

/external/libchrome/base/synchronization/
Dlock_unittest.cc19 class BasicLockTestThread : public PlatformThread::Delegate {
32 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain()
38 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in ThreadMain()
58 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
69 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
75 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
82 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20)); in TEST()
86 PlatformThread::Join(handle); in TEST()
94 class TryLockTestThread : public PlatformThread::Delegate {
124 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
[all …]
Dwaitable_event_unittest.cc151 class WaitableEventSignaler : public PlatformThread::Delegate {
159 PlatformThread::Sleep(delay_); in ThreadMain()
177 PlatformThread::Create(0, &signaler, &thread); in TEST()
182 PlatformThread::Join(thread); in TEST()
196 PlatformThread::Create(0, &signaler, &thread); in TEST()
203 PlatformThread::Join(thread); in TEST()
218 PlatformThread::Create(0, &signaler, &thread); in TEST()
224 PlatformThread::Join(thread); in TEST()
266 PlatformThread::Create(0, &signaler, &thread); in TEST()
271 PlatformThread::Join(thread); in TEST()
Datomic_flag_unittest.cc33 PlatformThread::YieldCurrentThread(); in BusyWaitUntilFlagIsSet()
78 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST()
88 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); in TEST()
93 PlatformThread::YieldCurrentThread(); in TEST()
107 PlatformThread::Sleep(TimeDelta::FromMilliseconds(20)); 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.cc48 PlatformThread::Delegate* delegate;
54 PlatformThread::Delegate* delegate = nullptr; in ThreadFunc()
68 PlatformThread::SetCurrentThreadPriority(thread_params->priority); in ThreadFunc()
73 PlatformThread::CurrentHandle().platform_handle(), in ThreadFunc()
74 PlatformThread::CurrentId()); in ThreadFunc()
79 PlatformThread::CurrentHandle().platform_handle(), in ThreadFunc()
80 PlatformThread::CurrentId()); in ThreadFunc()
88 PlatformThread::Delegate* delegate, in CreateThread()
136 PlatformThreadId PlatformThread::CurrentId() { in CurrentId()
162 PlatformThreadRef PlatformThread::CurrentRef() { in CurrentRef()
[all …]
Dplatform_thread_unittest.cc26 class TrivialThread : public PlatformThread::Delegate {
48 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
49 PlatformThread::Join(handle); in TEST()
60 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); in TEST()
62 PlatformThread::Join(handle[n]); in TEST()
75 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
76 PlatformThread::Detach(handle); in TEST()
87 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); in TEST()
88 PlatformThread::Detach(handle[n]); in TEST()
98 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.cc41 PlatformThread::Join(thread_); in Join()
52 ? PlatformThread::CreateWithPriority(options_.stack_size, this, in StartAsync()
54 : PlatformThread::CreateNonJoinableWithPriority( in StartAsync()
70 tid_ = PlatformThread::CurrentId(); in ThreadMain()
75 PlatformThread::SetName(name); in ThreadMain()
Dthread.cc112 ? PlatformThread::CreateWithPriority(options.stack_size, this, in StartWithOptions()
114 : PlatformThread::CreateNonJoinableWithPriority( in StartWithOptions()
183 PlatformThread::Join(thread_); in Stop()
253 DCHECK_EQ(id_, PlatformThread::CurrentId()); in Run()
293 id_ = PlatformThread::CurrentId(); in ThreadMain()
298 PlatformThread::SetName(name_.c_str()); in ThreadMain()
Dplatform_thread_linux.cc102 SetThreadCgroupsForThreadPriority(PlatformThread::CurrentId(), priority); in SetCurrentThreadPriorityForPlatform()
128 void PlatformThread::SetName(const std::string& name) { in SetName()
136 if (PlatformThread::CurrentId() == getpid()) in SetName()
153 void PlatformThread::SetThreadPriority(PlatformThreadId thread_id, in SetThreadPriority()
Dthread_unittest.cc52 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(500)); in Init()
203 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20)); in TEST_F()
222 &base::PlatformThread::Sleep), in TEST_F()
249 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20)); in TEST_F()
294 base::PlatformThread::Sleep(base::TimeDelta::Max()); in TEST_F()
375 base::PlatformThread::YieldCurrentThread(); in TEST_F()
377 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(20)); in TEST_F()
512 base::BindOnce(&base::PlatformThread::Sleep, kSleepPerTestTask)); in TEST_F()
Dthread_checker_impl.cc37 return thread_id_ == PlatformThread::CurrentRef(); in CalledOnValidThread()
52 thread_id_ = PlatformThread::CurrentRef(); in EnsureAssigned()
/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/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.cc118 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100)); in WaitForProcessesToExit()
138 class BackgroundReaper : public PlatformThread::Delegate {
166 PlatformThread::CreateNonJoinable( in EnsureProcessTerminated()
178 PlatformThread::CreateNonJoinable( in EnsureProcessGetsReaped()
/external/libchrome/dbus/
Ddbus_statistics.cc47 origin_thread_id_(base::PlatformThread::CurrentId()) { in DBusStatistics()
51 DCHECK_EQ(origin_thread_id_, base::PlatformThread::CurrentId()); in ~DBusStatistics()
66 if (base::PlatformThread::CurrentId() != origin_thread_id_) { in AddStat()
68 << base::PlatformThread::CurrentId(); in AddStat()
89 DCHECK_EQ(origin_thread_id_, base::PlatformThread::CurrentId()); in GetStats()
/external/libchrome/mojo/public/cpp/system/tests/
Dwait_unittest.cc131 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
151 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
169 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
239 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
257 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
284 base::PlatformThread::Sleep(base::TimeDelta::FromMilliseconds(200)); in TEST_F()
/external/libchrome/base/
Dlazy_instance_helpers.cc40 PlatformThread::YieldCurrentThread(); in NeedsLazyInstance()
42 PlatformThread::Sleep(TimeDelta::FromMilliseconds(1)); in NeedsLazyInstance()
/external/libchrome/base/message_loop/
Dmessage_loop_task_runner.cc24 valid_thread_id_ = PlatformThread::CurrentId(); in BindToCurrentThread()
46 return valid_thread_id_ == PlatformThread::CurrentId(); in RunsTasksInCurrentSequence()
Dmessage_loop_perftest.cc64 PlatformThread::Join(thread_handle_); in Join()
69 class Delegate final : public PlatformThread::Delegate {
102 PlatformThread::Create(0, &delegate_, &thread_handle_); in Start()
/external/libchrome/base/task/sequence_manager/test/
Dlazy_thread_controller_for_test.cc17 thread_ref_(PlatformThread::CurrentRef()) { in LazyThreadControllerForTest()
93 return thread_ref_ == PlatformThread::CurrentRef(); in RunsTasksInCurrentSequence()

12345