Boost logo

Boost Users :

Subject: Re: [Boost-users] thread_group::interrupt_all is not reliable
From: Peter Dimov (pdimov_at_[hidden])
Date: 2009-12-03 09:38:36


Stonewall Ballard wrote:
> I see that now. It's necessary for the interrupter to lock the
> condition variable mutex before interrupting the thread. The
> likelihood of failure would depend on the number of threads waiting
> on the condition variable, and the use of an interrupt_all() to
> interrupt them repeatedly.
>
> So this really is a bug in boost::thread, at least with the pthreads
> implementation. I suppose that makes it easier to fix than a bug in
> pthreads.

...

> I'm surprised that I can't find any other reports of this problem.

You might want to file a ticket for this issue on svn.boost.org so that it
doesn't get lost.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net