From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-08-14 20:50:36


At 02:51 PM 8/14/2001, Scott McCaskill wrote:

>Shouldn't thread::join() throw an exception if a thread tries to join
>itself? Right now, it will deadlock in such a situation.

It is a documented precondition (Requires), so violation is undefined
behavior.

Always nice for an implementation to assert() on preconditions if possible.

--Beman