Searched refs:PlatformThread (Results 1 - 25 of 224) sorted by relevance

123456789

/external/chromium_org/third_party/sfntly/cpp/src/test/
H A Dplatform_thread.cc24 PlatformThread::Delegate* delegate =
25 static_cast<PlatformThread::Delegate*>(params);
31 bool PlatformThread::Create(Delegate* delegate,
43 void PlatformThread::Join(PlatformThreadHandle thread_handle) {
51 void PlatformThread::Sleep(int32_t duration_ms) {
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
[all...]
H A Dlock_test.cc27 class BasicLockTestThread : public PlatformThread::Delegate {
40 PlatformThread::Sleep(rand() % 20);
46 PlatformThread::Sleep(rand() % 20);
66 EXPECT_TRUE(PlatformThread::Create(&thread, &handle));
77 PlatformThread::Sleep(rand() % 20);
83 PlatformThread::Sleep(rand() % 20);
90 PlatformThread::Sleep(rand() % 20);
94 PlatformThread::Join(handle);
104 class TryLockTestThread : public PlatformThread::Delegate {
134 EXPECT_TRUE(PlatformThread
[all...]
H A Dplatform_thread.h43 class PlatformThread { class in namespace:sfntly
69 PlatformThread() {} function in class:sfntly::PlatformThread
70 NO_COPY_AND_ASSIGN(PlatformThread);
/external/sfntly/cpp/src/test/
H A Dplatform_thread.cc24 PlatformThread::Delegate* delegate =
25 static_cast<PlatformThread::Delegate*>(params);
31 bool PlatformThread::Create(Delegate* delegate,
43 void PlatformThread::Join(PlatformThreadHandle thread_handle) {
51 void PlatformThread::Sleep(int32_t duration_ms) {
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
[all...]
H A Dlock_test.cc27 class BasicLockTestThread : public PlatformThread::Delegate {
40 PlatformThread::Sleep(rand() % 20);
46 PlatformThread::Sleep(rand() % 20);
66 EXPECT_TRUE(PlatformThread::Create(&thread, &handle));
77 PlatformThread::Sleep(rand() % 20);
83 PlatformThread::Sleep(rand() % 20);
90 PlatformThread::Sleep(rand() % 20);
94 PlatformThread::Join(handle);
104 class TryLockTestThread : public PlatformThread::Delegate {
134 EXPECT_TRUE(PlatformThread
[all...]
H A Dplatform_thread.h43 class PlatformThread { class in namespace:sfntly
69 PlatformThread() {} function in class:sfntly::PlatformThread
70 NO_COPY_AND_ASSIGN(PlatformThread);
/external/chromium_org/base/threading/
H A Dplatform_thread_unittest.cc14 class TrivialThread : public PlatformThread::Delegate {
35 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
36 PlatformThread::Join(handle);
47 ASSERT_TRUE(PlatformThread::Create(0, &thread[n], &handle[n]));
49 PlatformThread::Join(handle[n]);
61 thread_id_ = PlatformThread::CurrentId();
62 PlatformThread::YieldCurrentThread();
63 PlatformThread::Sleep(TimeDelta::FromMilliseconds(50));
66 EXPECT_EQ(thread_id_, PlatformThread::CurrentId());
80 PlatformThreadId main_thread_id = PlatformThread
[all...]
H A Dplatform_thread_posix.cc50 PlatformThread::Delegate* delegate;
61 PlatformThread::Delegate* delegate = thread_params->delegate;
66 PlatformThread::SetThreadPriority(PlatformThread::CurrentHandle(),
73 PlatformThread::CurrentId());
77 PlatformThread::CurrentHandle().platform_handle(),
78 PlatformThread::CurrentId());
83 PlatformThread::CurrentHandle().platform_handle(),
84 PlatformThread::CurrentId());
91 PlatformThread
[all...]
H A Dplatform_thread_android.cc58 void PlatformThread::SetThreadPriority(PlatformThreadHandle handle,
64 Java_ThreadUtils_setThreadPriorityAudio(env, PlatformThread::CurrentId());
76 const PlatformThreadId current_id = PlatformThread::CurrentId();
84 void PlatformThread::SetName(const char* name) {
92 if (PlatformThread::CurrentId() == getpid())
108 PlatformThread::SetThreadPriority(PlatformThread::CurrentHandle(),
H A Dplatform_thread_win.cc47 PlatformThread::Delegate* delegate;
53 PlatformThread::Delegate* delegate = thread_params->delegate;
74 PlatformThread::CurrentId());
83 PlatformThread::CurrentId());
89 // CreateThreadInternal() matches PlatformThread::Create(), except that
93 PlatformThread::Delegate* delegate,
128 PlatformThreadId PlatformThread::CurrentId() {
133 PlatformThreadRef PlatformThread::CurrentRef() {
138 PlatformThreadHandle PlatformThread::CurrentHandle() {
144 void PlatformThread
[all...]
H A Dthread_checker_impl.cc19 return valid_thread_id_ == PlatformThread::CurrentRef();
30 valid_thread_id_ = PlatformThread::CurrentRef();
H A Dthread_id_name_manager_unittest.cc68 base::PlatformThreadId a_id = base::PlatformThread::CurrentId();
69 base::PlatformThread::SetName("First Name");
72 base::PlatformThread::SetName("New name");
74 base::PlatformThread::SetName("");
80 base::PlatformThreadId a_id = base::PlatformThread::CurrentId();
81 base::PlatformThread::SetName("Test Name");
84 base::PlatformThread::SetName("New name");
87 base::PlatformThread::SetName("Test Name");
90 base::PlatformThread::SetName("");
H A Dplatform_thread_linux.cc49 void PlatformThread::SetName(const char* name) {
58 if (PlatformThread::CurrentId() == getpid())
74 void PlatformThread::SetThreadPriority(PlatformThreadHandle handle,
93 const PlatformThreadId current_id = PlatformThread::CurrentId();
/external/chromium_org/base/synchronization/
H A Dlock.cc24 DCHECK(owning_thread_ref_ == PlatformThread::CurrentRef());
28 DCHECK(owning_thread_ref_ == PlatformThread::CurrentRef());
34 owning_thread_ref_ = PlatformThread::CurrentRef();
H A Dlock_unittest.cc17 class BasicLockTestThread : public PlatformThread::Delegate {
30 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
36 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
56 ASSERT_TRUE(PlatformThread::Create(0, &thread, &handle));
67 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
73 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
80 PlatformThread::Sleep(TimeDelta::FromMilliseconds(rand() % 20));
84 PlatformThread::Join(handle);
92 class TryLockTestThread : public PlatformThread::Delegate {
122 ASSERT_TRUE(PlatformThread
[all...]
H A Dcancellation_flag.cc13 DCHECK_EQ(set_on_, PlatformThread::CurrentId());
H A Dcancellation_flag.h23 set_on_ = PlatformThread::CurrentId();
H A Dwaitable_event_unittest.cc74 class WaitableEventSignaler : public PlatformThread::Delegate {
82 PlatformThread::Sleep(TimeDelta::FromSecondsD(seconds_));
100 PlatformThread::Create(0, &signaler, &thread);
105 PlatformThread::Join(thread);
119 PlatformThread::Create(0, &signaler, &thread);
126 PlatformThread::Join(thread);
/external/chromium_org/base/memory/
H A Dsingleton.cc27 PlatformThread::YieldCurrentThread();
/external/chromium_org/base/test/
H A Dtest_file_util.cc18 PlatformThread::Sleep(kDelay);
/external/chromium_org/components/nacl/loader/nonsfi/
H A Dnonsfi_main.cc25 class PluginMainDelegate : public base::PlatformThread::Delegate {
35 base::PlatformThread::SetName("NaClMainThread");
85 if (!base::PlatformThread::CreateNonJoinable(
/external/chromium_org/base/debug/
H A Ddebugger.cc27 PlatformThread::Sleep(TimeDelta::FromMilliseconds(100));
/external/chromium_org/device/usb/
H A Dusb_context.cc20 class UsbContext::UsbEventHandler : public base::PlatformThread::Delegate {
25 // base::PlatformThread::Delegate
39 bool success = base::PlatformThread::Create(0, this, &thread_handle_);
47 base::PlatformThread::Join(thread_handle_);
51 base::PlatformThread::SetName("UsbEventHandler");
/external/chromium_org/base/message_loop/
H A Dmessage_loop_proxy_impl.cc18 valid_thread_id_(PlatformThread::CurrentId()) {
38 return valid_thread_id_ == PlatformThread::CurrentId();
/external/chromium_org/base/
H A Dlazy_instance.cc34 PlatformThread::YieldCurrentThread();

Completed in 8412 milliseconds

123456789