Boost logo

Boost :

Subject: [boost] [thread] std::this_thread reference in docs
From: Lars Viklund (zao_at_[hidden])
Date: 2012-09-11 08:28:55


Hi list.

Since 1.50.0, the Boost.Thread documentation has started making
references to std::this_thread::get_id() like in [1]. This is a bit
strange, considering that the Thead library itself to my knowledge does
not require C++11 (yet).

Is this an accidental change? Should one read this as that the error
condition is not achievable on C++03?

1.49:
Preconditions:
  this->get_id()!=boost::this_thread::get_id()

1.50 (and 1.51):
Preconditions:
  the thread is joinable.
Error Conditions:
  resource_deadlock_would_occur: if deadlock is detected or
  this->get_id() == std::this_thread::get_id().

[1] http://www.boost.org/doc/libs/1_51_0/doc/html/thread/thread_management.html#thread.thread_management.thread.join
[2] http://www.boost.org/doc/libs/1_49_0/doc/html/thread/thread_management.html#thread.thread_management.thread.join

-- 
Lars Viklund | zao_at_[hidden]

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk