Boost logo

Boost Users :

Subject: Re: [Boost-users] [thread] Is a call to interrupt_all blocking?
From: Geoff Shapiro (gshapiro_at_[hidden])
Date: 2010-01-27 12:00:59


Roland Bock <rbock <at> eudoxos.de> writes:

> There was a discussion about this topic a few weeks ago, e.g.:
> http://lists.boost.org/boost-users/2009/12/54165.php
>
> If I got it right, a workaround is
>
> {
> boost::mutex::scoped_lock lock(mutex_); // lock the mutex of the cv
> threadGroup_.interrupt_all();
> } // unlock the mutex

Ahh, terrific. Thanks, Roland. That will work pending the proper fix within
boost::thread itself.

Geoff Shapiro
FLIR Systems, Inc.


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