Home
last modified time | relevance | path

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

12345678910>>...19

/external/cronet/tot/base/threading/
Dscoped_thread_priority_unittest.cc39 PlatformThread::SetCurrentThreadType(ThreadType::kDefault); in SetUp()
41 PlatformThread::GetCurrentThreadPriorityForTest()); in SetUp()
52 PlatformThread::GetCurrentThreadPriorityForTest()); in FunctionThatBoostsPriorityOnFirstInvoke()
58 PlatformThread::GetCurrentThreadPriorityForTest()); in FunctionThatBoostsPriorityOnEveryInvoke()
67 if (!PlatformThread::CanChangeThreadType(ThreadType::kDefault, from)) in TEST_F()
81 EXPECT_EQ(PlatformThread::GetCurrentThreadType(), from); in TEST_F()
86 PlatformThread::CanChangeThreadType(from, to) && in TEST_F()
87 PlatformThread::CanChangeThreadType(to, from); in TEST_F()
88 EXPECT_EQ(PlatformThread::GetCurrentThreadType(), in TEST_F()
91 EXPECT_EQ(PlatformThread::GetCurrentThreadType(), from); in TEST_F()
[all …]
Dplatform_thread_unittest.cc55 class TrivialThread : public PlatformThread::Delegate {
78 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
79 PlatformThread::Join(handle); in TEST()
90 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); in TEST()
92 PlatformThread::Join(n); in TEST()
105 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
106 PlatformThread::Detach(handle); in TEST()
117 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); in TEST()
118 PlatformThread::Detach(handle[n]); in TEST()
128 class FunctionTestThread : public PlatformThread::Delegate {
[all …]
Dplatform_thread_win.cc85 raw_ptr<PlatformThread::Delegate> delegate;
93 PlatformThread::Delegate* delegate = thread_params->delegate; in ThreadFunc()
121 scoped_platform_handle.get(), PlatformThread::CurrentId()); in ThreadFunc()
129 PlatformThread::CurrentId()); in ThreadFunc()
141 PlatformThread::SetCurrentThreadType(ThreadType::kDefault); in ThreadFunc()
150 PlatformThread::Delegate* delegate, in CreateThreadInternal()
246 PlatformThreadId PlatformThread::CurrentId() { in CurrentId()
251 PlatformThreadRef PlatformThread::CurrentRef() { in CurrentRef()
256 PlatformThreadHandle PlatformThread::CurrentHandle() { in CurrentHandle()
261 void PlatformThread::YieldCurrentThread() { in YieldCurrentThread()
[all …]
Dscoped_thread_priority.cc18 PlatformThread::GetCurrentThreadType(); in ScopedBoostPriority()
20 PlatformThread::CanChangeThreadType( in ScopedBoostPriority()
22 PlatformThread::CanChangeThreadType( in ScopedBoostPriority()
26 PlatformThread::SetCurrentThreadType(target_thread_type); in ScopedBoostPriority()
32 PlatformThread::SetCurrentThreadType(original_thread_type_.value()); in ~ScopedBoostPriority()
55 const base::ThreadType thread_type = PlatformThread::GetCurrentThreadType(); in ScopedMayLoadLibraryAtBackgroundPriority()
58 PlatformThread::SetCurrentThreadType(base::ThreadType::kDefault); in ScopedMayLoadLibraryAtBackgroundPriority()
76 PlatformThread::SetCurrentThreadType(original_thread_type_.value()); in ~ScopedMayLoadLibraryAtBackgroundPriority()
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()
/external/cronet/stable/base/threading/
Dscoped_thread_priority_unittest.cc39 PlatformThread::SetCurrentThreadType(ThreadType::kDefault); in SetUp()
41 PlatformThread::GetCurrentThreadPriorityForTest()); in SetUp()
52 PlatformThread::GetCurrentThreadPriorityForTest()); in FunctionThatBoostsPriorityOnFirstInvoke()
58 PlatformThread::GetCurrentThreadPriorityForTest()); in FunctionThatBoostsPriorityOnEveryInvoke()
67 if (!PlatformThread::CanChangeThreadType(ThreadType::kDefault, from)) in TEST_F()
81 EXPECT_EQ(PlatformThread::GetCurrentThreadType(), from); in TEST_F()
86 PlatformThread::CanChangeThreadType(from, to) && in TEST_F()
87 PlatformThread::CanChangeThreadType(to, from); in TEST_F()
88 EXPECT_EQ(PlatformThread::GetCurrentThreadType(), in TEST_F()
91 EXPECT_EQ(PlatformThread::GetCurrentThreadType(), from); in TEST_F()
[all …]
Dplatform_thread_unittest.cc55 class TrivialThread : public PlatformThread::Delegate {
78 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
79 PlatformThread::Join(handle); in TEST()
90 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); in TEST()
92 PlatformThread::Join(n); in TEST()
105 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
106 PlatformThread::Detach(handle); in TEST()
117 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n])); in TEST()
118 PlatformThread::Detach(handle[n]); in TEST()
128 class FunctionTestThread : public PlatformThread::Delegate {
[all …]
Dplatform_thread_win.cc85 raw_ptr<PlatformThread::Delegate> delegate;
93 PlatformThread::Delegate* delegate = thread_params->delegate; in ThreadFunc()
121 scoped_platform_handle.get(), PlatformThread::CurrentId()); in ThreadFunc()
129 PlatformThread::CurrentId()); in ThreadFunc()
141 PlatformThread::SetCurrentThreadType(ThreadType::kDefault); in ThreadFunc()
150 PlatformThread::Delegate* delegate, in CreateThreadInternal()
246 PlatformThreadId PlatformThread::CurrentId() { in CurrentId()
251 PlatformThreadRef PlatformThread::CurrentRef() { in CurrentRef()
256 PlatformThreadHandle PlatformThread::CurrentHandle() { in CurrentHandle()
261 void PlatformThread::YieldCurrentThread() { in YieldCurrentThread()
[all …]
Dscoped_thread_priority.cc18 PlatformThread::GetCurrentThreadType(); in ScopedBoostPriority()
20 PlatformThread::CanChangeThreadType( in ScopedBoostPriority()
22 PlatformThread::CanChangeThreadType( in ScopedBoostPriority()
26 PlatformThread::SetCurrentThreadType(target_thread_type); in ScopedBoostPriority()
32 PlatformThread::SetCurrentThreadType(original_thread_type_.value()); in ~ScopedBoostPriority()
55 const base::ThreadType thread_type = PlatformThread::GetCurrentThreadType(); in ScopedMayLoadLibraryAtBackgroundPriority()
58 PlatformThread::SetCurrentThreadType(base::ThreadType::kDefault); in ScopedMayLoadLibraryAtBackgroundPriority()
76 PlatformThread::SetCurrentThreadType(original_thread_type_.value()); in ~ScopedMayLoadLibraryAtBackgroundPriority()
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()
/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 …]
/external/webrtc/rtc_base/
Dplatform_thread.cc109 PlatformThread::PlatformThread(Handle handle, bool joinable) in PlatformThread() function in rtc::PlatformThread
112 PlatformThread::PlatformThread(PlatformThread&& rhs) in PlatformThread() function in rtc::PlatformThread
117 PlatformThread& PlatformThread::operator=(PlatformThread&& rhs) { in operator =()
125 PlatformThread::~PlatformThread() { in ~PlatformThread()
129 PlatformThread PlatformThread::SpawnJoinable( in SpawnJoinable()
137 PlatformThread PlatformThread::SpawnDetached( in SpawnDetached()
145 absl::optional<PlatformThread::Handle> PlatformThread::GetHandle() const { in GetHandle()
150 bool PlatformThread::QueueAPC(PAPCFUNC function, ULONG_PTR data) { in QueueAPC()
157 void PlatformThread::Finalize() { in Finalize()
171 PlatformThread PlatformThread::SpawnThread( in SpawnThread()
[all …]
Dplatform_thread.h39 class PlatformThread final {
51 PlatformThread() = default;
56 PlatformThread(PlatformThread&& rhs);
59 PlatformThread(const PlatformThread&) = delete;
60 PlatformThread& operator=(const PlatformThread&) = delete;
65 PlatformThread& operator=(PlatformThread&& rhs);
70 virtual ~PlatformThread();
84 static PlatformThread SpawnJoinable(
91 static PlatformThread SpawnDetached(
105 PlatformThread(Handle handle, bool joinable);
[all …]
Dplatform_thread_unittest.cc21 PlatformThread thread; in TEST()
27 PlatformThread thread = PlatformThread::SpawnJoinable([] {}, "1"); in TEST()
33 thread = PlatformThread::SpawnDetached([&] { done.Set(); }, "2"); in TEST()
41 PlatformThread thread1; in TEST()
42 PlatformThread thread2 = std::move(thread1); in TEST()
48 PlatformThread thread1 = PlatformThread::SpawnJoinable([] {}, "1"); in TEST()
49 PlatformThread thread2 = std::move(thread1); in TEST()
53 thread1 = PlatformThread::SpawnDetached([&] { done.Set(); }, "2"); in TEST()
62 PlatformThread thread1 = PlatformThread(); in TEST()
63 PlatformThread thread2 = PlatformThread(); in TEST()
[all …]
/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()
/external/cronet/tot/base/profiler/
Dsample_metadata_unittest.cc20 PlatformThread::CurrentId()) in TEST()
28 PlatformThread::CurrentId()) in TEST()
37 PlatformThread::CurrentId()) in TEST()
47 PlatformThread::CurrentId()) in TEST()
55 PlatformThread::CurrentId()) in TEST()
65 PlatformThread::CurrentId()) in TEST()
75 PlatformThread::CurrentId()) in TEST()
82 PlatformThread::CurrentId()) in TEST()
91 PlatformThread::CurrentId()) in TEST()
101 PlatformThread::CurrentId()) in TEST()
[all …]
Dmetadata_recorder_unittest.cc31 PlatformThread::CurrentId()) in TEST()
34 PlatformThread::CurrentId()) in TEST()
47 PlatformThread::CurrentId()) in TEST()
60 PlatformThread::CurrentId()) in TEST()
77 MetadataRecorder::MetadataProvider(&recorder, PlatformThread::CurrentId()) in TEST()
103 MetadataRecorder::MetadataProvider(&recorder, PlatformThread::CurrentId()) in TEST()
129 PlatformThread::CurrentId()) in TEST()
142 PlatformThread::CurrentId()) in TEST()
160 recorder.Set(10, std::nullopt, PlatformThread::CurrentId(), 20); in TEST()
166 PlatformThread::CurrentId()) in TEST()
[all …]
/external/cronet/stable/base/profiler/
Dsample_metadata_unittest.cc20 PlatformThread::CurrentId()) in TEST()
28 PlatformThread::CurrentId()) in TEST()
37 PlatformThread::CurrentId()) in TEST()
47 PlatformThread::CurrentId()) in TEST()
55 PlatformThread::CurrentId()) in TEST()
65 PlatformThread::CurrentId()) in TEST()
75 PlatformThread::CurrentId()) in TEST()
82 PlatformThread::CurrentId()) in TEST()
91 PlatformThread::CurrentId()) in TEST()
101 PlatformThread::CurrentId()) in TEST()
[all …]
Dmetadata_recorder_unittest.cc31 PlatformThread::CurrentId()) in TEST()
34 PlatformThread::CurrentId()) in TEST()
47 PlatformThread::CurrentId()) in TEST()
60 PlatformThread::CurrentId()) in TEST()
77 MetadataRecorder::MetadataProvider(&recorder, PlatformThread::CurrentId()) in TEST()
103 MetadataRecorder::MetadataProvider(&recorder, PlatformThread::CurrentId()) in TEST()
129 PlatformThread::CurrentId()) in TEST()
142 PlatformThread::CurrentId()) in TEST()
160 recorder.Set(10, std::nullopt, PlatformThread::CurrentId(), 20); in TEST()
166 PlatformThread::CurrentId()) in TEST()
[all …]
/external/cronet/tot/base/synchronization/
Dlock_unittest.cc27 class BasicLockTestThread : public PlatformThread::Delegate {
43 PlatformThread::Sleep(Milliseconds(rand() % 20)); in ThreadMain()
49 PlatformThread::Sleep(Milliseconds(rand() % 20)); in ThreadMain()
67 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
78 PlatformThread::Sleep(Milliseconds(rand() % 20)); in TEST()
84 PlatformThread::Sleep(Milliseconds(rand() % 20)); in TEST()
91 PlatformThread::Sleep(Milliseconds(rand() % 20)); in TEST()
95 PlatformThread::Join(handle); in TEST()
103 class TryLockTestThread : public PlatformThread::Delegate {
137 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
[all …]
/external/cronet/stable/base/synchronization/
Dlock_unittest.cc27 class BasicLockTestThread : public PlatformThread::Delegate {
43 PlatformThread::Sleep(Milliseconds(rand() % 20)); in ThreadMain()
49 PlatformThread::Sleep(Milliseconds(rand() % 20)); in ThreadMain()
67 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
78 PlatformThread::Sleep(Milliseconds(rand() % 20)); in TEST()
84 PlatformThread::Sleep(Milliseconds(rand() % 20)); in TEST()
91 PlatformThread::Sleep(Milliseconds(rand() % 20)); in TEST()
95 PlatformThread::Join(handle); in TEST()
103 class TryLockTestThread : public PlatformThread::Delegate {
137 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle)); in TEST()
[all …]
/external/cronet/tot/base/task/sequence_manager/
Dassociated_thread_id.cc22 prev_thread_ref == PlatformThread::CurrentRef()); in BindToCurrentThread()
25 bound_thread_ref_.store(PlatformThread::CurrentRef(), in BindToCurrentThread()
41 const PlatformThreadRef current_thread_ref = PlatformThread::CurrentRef(); in IsBoundToCurrentThread()
57 CHECK_EQ(in_sequence_thread_ref, PlatformThread::CurrentRef()); in AssertInSequenceWithCurrentThread()
65 CHECK_EQ(bound_thread_ref, PlatformThread::CurrentRef()); in AssertInSequenceWithCurrentThread()
76 expected, PlatformThread::CurrentRef(), std::memory_order_relaxed); in StartInSequenceWithCurrentThread()
81 PlatformThreadRef expected = PlatformThread::CurrentRef(); in StopInSequenceWithCurrentThread()
/external/cronet/stable/base/task/sequence_manager/
Dassociated_thread_id.cc22 prev_thread_ref == PlatformThread::CurrentRef()); in BindToCurrentThread()
25 bound_thread_ref_.store(PlatformThread::CurrentRef(), in BindToCurrentThread()
41 const PlatformThreadRef current_thread_ref = PlatformThread::CurrentRef(); in IsBoundToCurrentThread()
57 CHECK_EQ(in_sequence_thread_ref, PlatformThread::CurrentRef()); in AssertInSequenceWithCurrentThread()
65 CHECK_EQ(bound_thread_ref, PlatformThread::CurrentRef()); in AssertInSequenceWithCurrentThread()
76 expected, PlatformThread::CurrentRef(), std::memory_order_relaxed); in StartInSequenceWithCurrentThread()
81 PlatformThreadRef expected = PlatformThread::CurrentRef(); in StopInSequenceWithCurrentThread()

12345678910>>...19