19 Jun
2017
19 Jun
'17
10:19 p.m.
Actually, I am happy with the behavior that a call to wait(lock, pred) never throws a boost::thread_interrupted exception for the case where the predicate is true prior the call. My problem is that currently, if `thread` is waiting on `cv`, and another thread calls cv.notify_all(); thread.interrupt(); it is unspecified whether the call to wait returns normally or throws boost::thread_interrupted (it depends on whether the thread that was blocked is woken up between the two calls). I would like for it to be specified that the call returns normally.