Boost logo

Boost Users :

From: Matthias Vallentin (vallentin_at_[hidden])
Date: 2008-06-17 05:13:39


Hi folks,

I am having issues with boost::thread::interrupt(). As far as I
understood, calling this function will throw an exception in the
corresponding thread. How can deal with blocking functions, such as a
calls to accept() or when a thread is waiting on a condition variable
to change? Basically the thread blocks somewhere in a while (true) loop.

Injecting interruption points manually with
boost::this_thread::interruption_point() does not seem to help here
either. boost::thread::interrupt() (or interrupt_all in a thread_group),
simply does not return.

Regards,

   Matthias

-- 
Matthias Vallentin
vallentin_at_[hidden]
pgp/gpg: 0x37F34C16

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