Boost logo

Boost :

Subject: Re: [boost] [thread] Is interrupting a non boost.thread possible?
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2009-11-09 05:10:54


Christoph Mathys <eraserix_at_[hidden]> 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

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk