Home
last modified time | relevance | path

Searched refs:this_thread (Results 1 – 25 of 348) sorted by relevance

12345678910>>...14

/third_party/boost/libs/thread/test/
Dtest_3837.cpp21 std::cout << __FILE__ << ":" << __LINE__ << boost::this_thread::get_id() << std::endl; in dummy_class_tracks_deletions()
26 std::cout << __FILE__ << ":" << __LINE__ << boost::this_thread::get_id() << std::endl; in ~dummy_class_tracks_deletions()
42 std::cout << __FILE__ << ":" << __LINE__ << boost::this_thread::get_id() << std::endl; in other_thread()
44 std::cout << __FILE__ << ":" << __LINE__ << boost::this_thread::get_id() << std::endl; in other_thread()
46 std::cout << __FILE__ << ":" << __LINE__ << boost::this_thread::get_id() << std::endl; in other_thread()
48 this_thread::sleep(posix_time::seconds(5)); in other_thread()
50 std::cout << __FILE__ << ":" << __LINE__ << boost::this_thread::get_id() << std::endl; in other_thread()
57 std::cout << __FILE__ << ":" << __LINE__ << boost::this_thread::get_id() << std::endl; in main()
59 std::cout << __FILE__ << ":" << __LINE__ << boost::this_thread::get_id() << std::endl; in main()
61 std::cout << __FILE__ << ":" << __LINE__ << boost::this_thread::get_id() << std::endl; in main()
[all …]
Dtest_thread_exit.cpp23 exit_func_thread_id=boost::this_thread::get_id(); in exit_func()
28 boost::this_thread::at_thread_exit(exit_func); in tf1()
29 BOOST_CHECK(exit_func_thread_id!=boost::this_thread::get_id()); in tf1()
45 exit_func_thread_id=boost::this_thread::get_id(); in operator ()()
51 boost::this_thread::at_thread_exit(fo()); in tf2()
52 BOOST_CHECK(exit_func_thread_id!=boost::this_thread::get_id()); in tf2()
Dtest_3628.cpp33 cout << "Added " << boost::this_thread::get_id() << " " << &con1 << endl; in ThreadFuncWaiter()
36 cout << "Woke Up " << boost::this_thread::get_id() << " " << &con1 << endl; in ThreadFuncWaiter()
40 cout << "*****Timed Out " << boost::this_thread::get_id() << " " << &con1 << endl; in ThreadFuncWaiter()
45 cout << "Removed " << boost::this_thread::get_id() << " " << &con1 << endl; in ThreadFuncWaiter()
50 boost::this_thread::sleep_for(boost::chrono::milliseconds(200)); in ThreadFuncWaiter()
75 boost::this_thread::sleep_for(boost::chrono::milliseconds(50)); in ThreadFuncNotifier()
Dtest_4648.cpp26 std::cout<<"Entering "<<boost::this_thread::get_id()<<" "<<"firstFunction"<<std::endl; in firstFunction()
29 std::cout<<"Returned From Call "<<boost::this_thread::get_id()<<" "<<"firstFunction"<<std::endl; in firstFunction()
30 std::cout<<"Returning from "<<boost::this_thread::get_id()<<" "<<"firstFunction"<<std::endl; in firstFunction()
34 …std::cout<<"Before Exclusive Locking "<<boost::this_thread::get_id()<<" "<<"secondFunction"<<std::… in secondFunction()
36 …std::cout<<"After Exclusive Locking "<<boost::this_thread::get_id()<<" "<<"secondFunction"<<std::e… in secondFunction()
Dtest_2309.cpp24 boost::this_thread::sleep(boost::posix_time::seconds(100)); in perform()
29 cerr << "Thread " << boost::this_thread::get_id() << " got interrupted" << endl; in perform()
35 … cerr << "Thread " << boost::this_thread::get_id() << " caught std::exception" << e.what() << endl; in perform()
40 cerr << "Thread " << boost::this_thread::get_id() << " caught something else" << endl; in perform()
/third_party/boost/libs/asio/include/boost/asio/detail/
Dthread_info_base.hpp78 static void* allocate(thread_info_base* this_thread, std::size_t size) in allocate() argument
80 return allocate(default_tag(), this_thread, size); in allocate()
83 static void deallocate(thread_info_base* this_thread, in deallocate() argument
86 deallocate(default_tag(), this_thread, pointer, size); in deallocate()
90 static void* allocate(Purpose, thread_info_base* this_thread, in allocate() argument
95 if (this_thread && this_thread->reusable_memory_[Purpose::mem_index]) in allocate()
97 void* const pointer = this_thread->reusable_memory_[Purpose::mem_index]; in allocate()
98 this_thread->reusable_memory_[Purpose::mem_index] = 0; in allocate()
117 static void deallocate(Purpose, thread_info_base* this_thread, in deallocate() argument
122 if (this_thread && this_thread->reusable_memory_[Purpose::mem_index] == 0) in deallocate()
[all …]
/third_party/boost/boost/asio/detail/
Dthread_info_base.hpp78 static void* allocate(thread_info_base* this_thread, std::size_t size) in allocate() argument
80 return allocate(default_tag(), this_thread, size); in allocate()
83 static void deallocate(thread_info_base* this_thread, in deallocate() argument
86 deallocate(default_tag(), this_thread, pointer, size); in deallocate()
90 static void* allocate(Purpose, thread_info_base* this_thread, in allocate() argument
95 if (this_thread && this_thread->reusable_memory_[Purpose::mem_index]) in allocate()
97 void* const pointer = this_thread->reusable_memory_[Purpose::mem_index]; in allocate()
98 this_thread->reusable_memory_[Purpose::mem_index] = 0; in allocate()
117 static void deallocate(Purpose, thread_info_base* this_thread, in deallocate() argument
122 if (this_thread && this_thread->reusable_memory_[Purpose::mem_index] == 0) in deallocate()
[all …]
/third_party/boost/boost/asio/detail/impl/
Dscheduler.ipp197 thread_info this_thread;
198 this_thread.private_outstanding_work = 0;
199 thread_call_stack::context ctx(this, this_thread);
204 for (; do_run_one(lock, this_thread, ec); lock.lock())
219 thread_info this_thread;
220 this_thread.private_outstanding_work = 0;
221 thread_call_stack::context ctx(this, this_thread);
225 return do_run_one(lock, this_thread, ec);
237 thread_info this_thread;
238 this_thread.private_outstanding_work = 0;
[all …]
Dwin_iocp_io_context.ipp200 win_iocp_thread_info this_thread;
201 thread_call_stack::context ctx(this, this_thread);
204 while (do_one(INFINITE, this_thread, ec))
219 win_iocp_thread_info this_thread;
220 thread_call_stack::context ctx(this, this_thread);
222 return do_one(INFINITE, this_thread, ec);
234 win_iocp_thread_info this_thread;
235 thread_call_stack::context ctx(this, this_thread);
237 return do_one(usec < 0 ? INFINITE : ((usec - 1) / 1000 + 1), this_thread, ec);
249 win_iocp_thread_info this_thread;
[all …]
/third_party/boost/libs/asio/include/boost/asio/detail/impl/
Dscheduler.ipp197 thread_info this_thread;
198 this_thread.private_outstanding_work = 0;
199 thread_call_stack::context ctx(this, this_thread);
204 for (; do_run_one(lock, this_thread, ec); lock.lock())
219 thread_info this_thread;
220 this_thread.private_outstanding_work = 0;
221 thread_call_stack::context ctx(this, this_thread);
225 return do_run_one(lock, this_thread, ec);
237 thread_info this_thread;
238 this_thread.private_outstanding_work = 0;
[all …]
Dwin_iocp_io_context.ipp200 win_iocp_thread_info this_thread;
201 thread_call_stack::context ctx(this, this_thread);
204 while (do_one(INFINITE, this_thread, ec))
219 win_iocp_thread_info this_thread;
220 thread_call_stack::context ctx(this, this_thread);
222 return do_one(INFINITE, this_thread, ec);
234 win_iocp_thread_info this_thread;
235 thread_call_stack::context ctx(this, this_thread);
237 return do_one(usec < 0 ? INFINITE : ((usec - 1) / 1000 + 1), this_thread, ec);
249 win_iocp_thread_info this_thread;
[all …]
/third_party/boost/libs/thread/test/sync/futures/async/
Dasync_executor_pass.cpp53 boost::this_thread::sleep_for(ms(200)); in doit()
58 boost::this_thread::sleep_for(ms(200)); in operator ()()
87 boost::this_thread::sleep_for(ms(200)); in operator ()()
105 boost::this_thread::sleep_for(ms(200)); in f0()
113 boost::this_thread::sleep_for(ms(200)); in f1()
119 boost::this_thread::sleep_for(ms(200)); in f2()
124 boost::this_thread::sleep_for(ms(200)); in f3_0()
130 boost::this_thread::sleep_for(ms(200)); in f3_1()
137 boost::this_thread::sleep_for(ms(200)); in f3()
145 boost::this_thread::sleep_for(ms(200)); in f4()
[all …]
Dasync_pass.cpp56 boost::this_thread::sleep_for(ms(200)); in doit()
61 boost::this_thread::sleep_for(ms(200)); in operator ()()
90 boost::this_thread::sleep_for(ms(200)); in operator ()()
108 boost::this_thread::sleep_for(ms(200)); in f0()
116 boost::this_thread::sleep_for(ms(200)); in f1()
122 boost::this_thread::sleep_for(ms(200)); in f2()
127 boost::this_thread::sleep_for(ms(200)); in f3_0()
133 boost::this_thread::sleep_for(ms(200)); in f3_1()
140 boost::this_thread::sleep_for(ms(200)); in f3()
148 boost::this_thread::sleep_for(ms(200)); in f4()
[all …]
/third_party/flutter/skia/third_party/externals/sdl/src/thread/generic/
DSDL_sysmutex.c78 SDL_threadID this_thread; in SDL_LockMutex()
84 this_thread = SDL_ThreadID(); in SDL_LockMutex()
85 if (mutex->owner == this_thread) { in SDL_LockMutex()
93 mutex->owner = this_thread; in SDL_LockMutex()
109 SDL_threadID this_thread; in SDL_TryLockMutex()
115 this_thread = SDL_ThreadID(); in SDL_TryLockMutex()
116 if (mutex->owner == this_thread) { in SDL_TryLockMutex()
125 mutex->owner = this_thread; in SDL_TryLockMutex()
/third_party/flutter/skia/third_party/externals/sdl/src/thread/pthread/
DSDL_sysmutex.c87 pthread_t this_thread; in SDL_LockMutex() local
95 this_thread = pthread_self(); in SDL_LockMutex()
96 if (mutex->owner == this_thread) { in SDL_LockMutex()
104 mutex->owner = this_thread; in SDL_LockMutex()
123 pthread_t this_thread; in SDL_TryLockMutex() local
132 this_thread = pthread_self(); in SDL_TryLockMutex()
133 if (mutex->owner == this_thread) { in SDL_TryLockMutex()
141 mutex->owner = this_thread; in SDL_TryLockMutex()
/third_party/boost/libs/thread/example/
Dserial_executor.cpp31 boost::this_thread::sleep_for(boost::chrono::milliseconds(30)); in p1()
38 boost::this_thread::sleep_for(boost::chrono::milliseconds(10)); in p2()
45 boost::this_thread::sleep_for(boost::chrono::seconds(1)); in f1()
51 boost::this_thread::sleep_for(boost::chrono::seconds(2)); in f2()
85 boost::this_thread::sleep_for(boost::chrono::seconds(10)); in test_executor_adaptor()
Dserial_executor_cont.cpp31 boost::this_thread::sleep_for(boost::chrono::milliseconds(30)); in p1()
38 boost::this_thread::sleep_for(boost::chrono::milliseconds(10)); in p2()
45 boost::this_thread::sleep_for(boost::chrono::seconds(1)); in f1()
51 boost::this_thread::sleep_for(boost::chrono::seconds(2)); in f2()
89 boost::this_thread::sleep_for(boost::chrono::seconds(10)); in test_executor_adaptor()
Ddefault_executor.cpp35 boost::this_thread::sleep_for(boost::chrono::milliseconds(200)); in p2()
43 boost::this_thread::sleep_for(boost::chrono::milliseconds(200)); in p1()
45 boost::this_thread::sleep_for(boost::chrono::milliseconds(400)); in p1()
55 boost::this_thread::sleep_for(boost::chrono::seconds(5)); in main()
Dthread_pool.cpp29 << boost::this_thread::get_id() << " P1" << BOOST_THREAD_END_LOG; in p1()
35 << boost::this_thread::get_id() << " P2" << BOOST_THREAD_END_LOG; in p2()
55 << boost::this_thread::get_id() << " <MAIN" << BOOST_THREAD_END_LOG; in main()
76 << boost::this_thread::get_id() << "MAIN>" << BOOST_THREAD_END_LOG; in main()
Duser_scheduler.cpp27 << boost::this_thread::get_id() << " P1" << BOOST_THREAD_END_LOG; in p1()
33 << boost::this_thread::get_id() << " P2" << BOOST_THREAD_END_LOG; in p2()
52 << boost::this_thread::get_id() << " <MAIN" << BOOST_THREAD_END_LOG; in main()
77 << boost::this_thread::get_id() << "MAIN>" << BOOST_THREAD_END_LOG; in main()
/third_party/boost/boost/thread/
Dtestable_mutex.hpp53 id_ = this_thread::get_id(); in lock()
68 id_ = this_thread::get_id(); in try_lock()
83 id_ = this_thread::get_id(); in try_lock_for()
97 id_ = this_thread::get_id(); in try_lock_until()
109 return this_thread::get_id() == id_; in is_locked_by_this_thread()
/third_party/boost/boost/thread/pthread/
Dshared_mutex.hpp171 boost::this_thread::disable_interruption do_not_disturb; in lock_shared()
194 boost::this_thread::disable_interruption do_not_disturb; in timed_lock_shared()
209 boost::this_thread::disable_interruption do_not_disturb; in timed_lock_shared()
230 boost::this_thread::disable_interruption do_not_disturb; in try_lock_shared_until()
269 boost::this_thread::disable_interruption do_not_disturb; in lock()
281 boost::this_thread::disable_interruption do_not_disturb; in timed_lock()
299 boost::this_thread::disable_interruption do_not_disturb; in timed_lock()
323 boost::this_thread::disable_interruption do_not_disturb; in try_lock_until()
362 boost::this_thread::disable_interruption do_not_disturb; in lock_upgrade()
374 boost::this_thread::disable_interruption do_not_disturb; in timed_lock_upgrade()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/marl/src/
Dscheduler_test.cpp116 auto threadID = std::this_thread::get_id(); in TEST_P()
118 ASSERT_EQ(threadID, std::this_thread::get_id()); in TEST_P()
123 std::this_thread::sleep_for(std::chrono::milliseconds(10)); in TEST_P()
143 auto threadID = std::this_thread::get_id(); in TEST_P()
145 ASSERT_EQ(threadID, std::this_thread::get_id()); in TEST_P()
150 std::this_thread::sleep_for(std::chrono::milliseconds(10)); in TEST_P()
175 threads.emplace(std::this_thread::get_id()); in TEST_F()
181 ASSERT_EQ(threads.count(std::this_thread::get_id()), 0U); in TEST_F()
/third_party/boost/libs/config/test/
Dboost_no_cxx11_hdr_thread.ipp20 using std::this_thread::get_id;
21 using std::this_thread::yield;
22 using std::this_thread::sleep_until;
23 using std::this_thread::sleep_for;
/third_party/flutter/skia/third_party/externals/sdl/src/thread/psp/
DSDL_sysmutex.c80 SDL_threadID this_thread; in SDL_mutexP()
86 this_thread = SDL_ThreadID(); in SDL_mutexP()
87 if (mutex->owner == this_thread) { in SDL_mutexP()
95 mutex->owner = this_thread; in SDL_mutexP()

12345678910>>...14