|
Boost Users : |
Subject: Re: [Boost-users] [thread] Is a call to interrupt_all blocking?
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2010-01-27 04:30:18
Geoff Shapiro <gshapiro_at_[hidden]> writes:
> Anthony Williams <anthony.ajw <at> gmail.com> writes:
>
>> interrupt_all is not blocking. However, there is currently a bug in
>> interruption on pthreads which means threads can miss interruptions
>> if they get a spurious condition variable wake at the wrong time.
>> Since interruption causes spurious wakes for other threads waiting on
>> the same cv this is particularly a problem for interrupt_all.
>
> Anthony, what is the schedule, if any, for getting a fix for the bug
> you refer to? The project I am currently working on, in development
> within a win32 environment, but soon to be ported to a VxWorks/PPC
> (using pthreads) environment does use interruption facilities. If this
> will be a problem for us, let's say not fixed up within the next 6 months,
> then I'll have to utilize alternate schemes.
I have an idea on how to fix it; I just need to find the time to try it out.
Anthony
-- Author of C++ Concurrency in Action http://www.stdthread.co.uk/book/ just::thread C++0x thread library http://www.stdthread.co.uk Just Software Solutions Ltd http://www.justsoftwaresolutions.co.uk 15 Carrallack Mews, St Just, Cornwall, TR19 7UL, UK. Company No. 5478976
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