[thread] Is interrupting a non boost.thread possible?

Hello I've a question about boost.threads: Is it possible to interrupt a thread for which I don't have a thread-object but which is using boost synchronization primitives (mutex, condition)? Thanks! Christoph

Christoph Mathys <eraserix@gmail.com> writes:
I've a question about boost.threads: Is it possible to interrupt a thread for which I don't have a thread-object but which is using boost synchronization primitives (mutex, condition)?
No. You need a boost::thread object to call interrupt and set the interruption flag. Anthony -- Author of C++ Concurrency in Action | http://www.manning.com/williams 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
participants (2)
-
Anthony Williams
-
Christoph Mathys