• Home
  • Raw
  • Download

Lines Matching full:thread

13   //#include <boost/thread/scoped_thread.hpp>
18 template <class CallableThread = join_if_joinable, class Thread = thread>
20 template <class CallableThread = join_if_joinable, class Thread = thread>
22 template <class CallableThread, class Thread = thread>
23 void swap(scoped_thread<Callable, Thread>& lhs, scoped_threadCallable, Thread>& rhs) noexcept;
26 …n C++ Concurrency in Action Boost.Thread defines a thread wrapper class that instead of calling te…
28 …scoped_thread class that doesn't allows any change in the wrapped thread, Boost.Thread provides a …
34thread that allows the user to state what to do at destruction time. One of the common uses is to …
36 …trict_scoped_thread hides completely the owned thread and so the user can do nothing with the owne…
38 boost::strict_scoped_thread<> t1((boost::thread(f)));
40 boost::scoped_thread<> t2((boost::thread(f)));
45 [section:thread_functors Free Thread Functors]
47 //#include <boost/thread/scoped_thread.hpp>
58 template <class Thread>
59 void operator()(Thread& t)
69 template <class Thread>
70 void operator()(Thread& t)
85 template <class Thread>
86 void operator()(Thread& t)
101 // #include <boost/thread/scoped_thread.hpp>
103 template <class CallableThread = join_if_joinable, class Thread = ::boost::thread>
106 thread t_; // for exposition purposes only
112 explicit strict_scoped_thread(Thread&& t) noexcept;
123 CallableThread: A callable `void(thread&)`.
128 Thread destructor terminates the program if the __thread is joinable.
129 This wrapper can be used to join the thread before destroying it.
133 boost::strict_scoped_thread<> t((boost::thread(F)));
137 explicit strict_scoped_thread(Thread&& t) noexcept;
141 [[Effects:] [move the thread to own `t_`]]
157 [[Effects:] [Construct an internal thread in place.]]
159 …conditions:] [`*this.t_` refers to the newly created thread of execution and `this->get_id()!=thre…
161 [[Throws:] [Any exception the thread construction can throw.]]
175 …ead()(t_)` should not throw when joining the thread as the scoped variable is on a scope outside t…
185 #include <boost/thread/scoped_thread.hpp>
187 template <class CallableThread, class Thread = thread>
190 thread t_; // for exposition purposes only
196 explicit scoped_thread(thread&& th) noexcept;
208 typedef thread::id id;
226 typedef thread::native_handle_type native_handle_type;
237 template <class CallableThread, class Thread = thread>
238 …void swap(scoped_thread<CallableThread,Thread>& lhs,scoped_thread<CallableThread,Thread>& rhs) noe…
243 CallableThread: A callable void(thread&).
246 Thread destructor terminates the program if the thread is joinable.
247 This wrapper can be used to join the thread before destroying it.
256 boost::scoped_thread<> t((boost::thread(F)));
268 [[Postconditions:] [`this->get_id()==thread::id()`]]
284 [[Postconditions:] [`other.get_id()==thread::id()` and `get_id()` returns the value of `other.get_i…
303 [[Postconditions:] [`other->get_id()==thread::id()` and `get_id()` returns the value of `other.get_…
305 …ead()(t_)` should not throw when joining the thread as the scoped variable is on a scope outside t…
314 scoped_thread(thread&& t);
318 [[Effects:] [Transfers ownership of the thread managed by `other` (if any) to the newly constructed…
320 [[Postconditions:] [other.get_id()==thread::id() and get_id() returns the value of other.get_id() p…
335 [[Effects:] [Construct an internal thread in place.]]
337 …conditions:] [`*this.t_` refers to the newly created thread of execution and `this->get_id()!=thre…
339 [[Throws:] [Any exception the thread construction can throw.]]
354 …ead()(t_)` should not throw when joining the thread as the scoped variable is on a scope outside t…
431 thread::id get_id() const noexcept;
460 [[Effects:] [Equivalent to return `thread::hardware_concurrency()`.]]
473 [[Effects:] [Equivalent to return `thread::physical_concurrency()`.]]
482 typedef thread::native_handle_type native_handle_type;
510 #include <boost/thread/scoped_thread.hpp>
512 template <class CallableThread, class Thread = thread>
513 void swap(scoped_thread<Callable, Thread>& lhs, scoped_threadCallable, Thread>& rhs) noexcept;