diff options
Diffstat (limited to 'libs/thread/doc/thread_ref.qbk')
-rw-r--r-- | libs/thread/doc/thread_ref.qbk | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libs/thread/doc/thread_ref.qbk b/libs/thread/doc/thread_ref.qbk index 9709d5453..a1e86426f 100644 --- a/libs/thread/doc/thread_ref.qbk +++ b/libs/thread/doc/thread_ref.qbk @@ -125,7 +125,7 @@ the user to set the platform specific attributes. Boost.Thread stay in the middl thread::attributes which allows to set at least in a portable way the stack size as follows: boost::thread::attributes attrs; - attrs.set_size(4096*10); + attrs.set_stack_size(4096*10); boost::thread deep_thought_2(attrs, find_the_question, 42); Even for this simple attribute there could be portable issues as some platforms could require that the stack size @@ -147,7 +147,7 @@ Next follows how the user could set the stack size and the scheduling policy on // ... window version #elif defined(BOOST_THREAD_PLATFORM_PTHREAD) // ... pthread version - pthread_attr_setschedpolicy(attr.get_native_handle(), SCHED_RR); + pthread_attr_setschedpolicy(attr.native_handle(), SCHED_RR); #else #error "Boost threads unavailable on this platform" #endif @@ -432,12 +432,14 @@ This behavior is incompatible with the current Boost.Thread design, so the use o class attributes; // EXTENSION thread() noexcept; + ~thread(); + thread(const thread&) = delete; thread& operator=(const thread&) = delete; + // move support thread(thread&&) noexcept; thread& operator=(thread&&) noexcept; - ~thread(); template <class F> explicit thread(F f); @@ -456,10 +458,6 @@ This behavior is incompatible with the current Boost.Thread design, so the use o template <class F, class ...Args> explicit thread(attributes& attrs, F&& f, Args&&... args); - // move support - thread(thread && x) noexcept; - thread& operator=(thread && x) noexcept; - void swap(thread& x) noexcept; class id; |