Home
last modified time | relevance | path

Searched refs:thrd (Results 1 – 15 of 15) sorted by relevance

/third_party/boost/libs/thread/test/
Dtest_thread.cpp58 boost::thread thrd(&simple_thread); in do_test_creation() local
59 thrd.join(); in do_test_creation()
71 boost::thread thrd(boost::bind(&comparison_thread, self)); in do_test_id_comparison() local
72 thrd.join(); in do_test_id_comparison()
92 boost::thread thrd(boost::bind(&interruption_point_thread,&m,&failed)); in do_test_thread_interrupts_at_interruption_point() local
93 thrd.interrupt(); in do_test_thread_interrupts_at_interruption_point()
95 thrd.join(); in do_test_thread_interrupts_at_interruption_point()
117 boost::thread thrd(boost::bind(&disabled_interruption_point_thread,&m,&failed)); in do_test_thread_no_interrupt_if_interrupts_disabled_at_interruption_point() local
118 thrd.interrupt(); in do_test_thread_no_interrupt_if_interrupts_disabled_at_interruption_point()
120 thrd.join(); in do_test_thread_no_interrupt_if_interrupts_disabled_at_interruption_point()
[all …]
Dtest_2741.cpp69 boost::thread thrd(attrs, &simple_thread); in do_test_creation_with_attrs() local
70 thrd.join(); in do_test_creation_with_attrs()
Dutil.inl145 boost::thread thrd(func); local
146 thrd.join();
174 boost::thread thrd(ifunc); local
/third_party/ltp/testcases/realtime/stress/pi-tests/
Dtestpi-3.c249 int startThread(Thread * thrd) in startThread() argument
255 printf("Start thread priority %d\n", thrd->priority); in startThread()
256 if (pthread_attr_init(&(thrd->attr)) != 0) { in startThread()
260 thrd->flags = 0; in startThread()
262 schedp.sched_priority = thrd->priority; in startThread()
263 policy = thrd->policy; in startThread()
265 if (pthread_attr_setschedpolicy(&(thrd->attr), policy) != 0) { in startThread()
268 if (pthread_attr_getschedpolicy(&(thrd->attr), &policy) != 0) { in startThread()
273 if (pthread_attr_setschedparam(&(thrd->attr), &schedp) != 0) { in startThread()
276 if (pthread_attr_getschedparam(&(thrd->attr), &schedp) != 0) { in startThread()
[all …]
/third_party/boost/boost/thread/detail/
Dthread_group.hpp54 bool is_thread_in(thread* thrd) in is_thread_in() argument
56 if(thrd) in is_thread_in()
58 thread::id id = thrd->get_id(); in is_thread_in()
84 void add_thread(thread* thrd) in add_thread() argument
86 if(thrd) in add_thread()
88 BOOST_THREAD_ASSERT_PRECONDITION( ! is_thread_in(thrd) , in add_thread()
93 threads.push_back(thrd); in add_thread()
97 void remove_thread(thread* thrd) in remove_thread() argument
100 std::list<thread*>::iterator const it=std::find(threads.begin(),threads.end(),thrd); in remove_thread()
/third_party/boost/libs/thread/tutorial/
Dhelloworld.cpp17 boost::thread thrd(&helloworld); in main() local
18 thrd.join(); in main()
Dhelloworld3.cpp18 boost::thread thrd(boost::bind(&helloworld, "Bob")); in main() local
19 thrd.join(); in main()
Dhelloworld2.cpp22 boost::thread thrd(helloworld("Bob")); in main() local
23 thrd.join(); in main()
Dfactorial2.cpp29 boost::thread thrd(boost::ref(f)); in main() local
30 thrd.join(); in main()
Dfactorial.cpp29 boost::thread thrd(f); in main() local
30 thrd.join(); in main()
/third_party/boost/libs/thread/example/
Dthread.cpp35 boost::thread thrd(alarm); in main() local
36 thrd.join(); in main()
/third_party/boost/libs/signals2/test/
Dmutex_test.cpp78 boost::thread thrd(m_func); in operator ()() local
79 thrd.join(); in operator ()()
101 boost::thread thrd(ifunc); in timed_test() local
/third_party/skia/third_party/externals/microhttpd/src/testcurl/
Dtest_quiesce.c190 pthread_t thrd; in testGet() local
232 if (0 != pthread_create(&thrd, NULL, &ServeOneRequest, (void*)(intptr_t) fd)) in testGet()
251 if (0 != pthread_join(thrd, (void**)&thrdRet)) in testGet()
/third_party/boost/libs/thread/doc/
Dthread_ref.qbk1728 void add_thread(thread* thrd);
1729 void remove_thread(thread* thrd);
1731 bool is_thread_in(thread* thrd);
1783 void add_thread(thread* thrd);
1787 …dition:] [The expression `delete thrd` is well-formed and will not result in undefined behaviour a…
1789 [[Effects:] [Take ownership of the __thread__ object pointed to by `thrd` and add it to the group.]]
1799 void remove_thread(thread* thrd);
1803 [[Effects:] [If `thrd` is a member of the group, remove it without calling `delete`.]]
1805 [[Postcondition:] [If `thrd` was a member of the group, `this->size()` is decreased by one.]]
1844 bool is_thread_in(thread* thrd);
[all …]
/third_party/python/Programs/
D_testembed.c279 unsigned long thrd = PyThread_start_new_thread(bpo20891_thread, &lock); in test_bpo20891() local
280 if (thrd == PYTHREAD_INVALID_THREAD_ID) { in test_bpo20891()