Geoff Shapiro
Anthony Williams
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