|
Boost Users : |
From: Anthony Williams (anthony.ajw_at_[hidden])
Date: 2008-08-13 10:44:17
Christian Larsen <contact_at_[hidden]> writes:
> I'm afraid this is a frequently asked question, but my attempts at
> searching have not been successful. My question is whether there is a
> smarter way to reset the interruption request (if any) than this:
>
> try
> {
> boost::this_thread::interruption_point();
> }
> catch (boost::thread_interrupted&)
> {
> // ignore
> }
>
> Which I find a little messy for what I want to achieve. I'm using
> version 1.35.0.
That's essentially the only way to do it, but if interruption is
disabled, even that won't work.
Anthony
-- Anthony Williams | Just Software Solutions Ltd Custom Software Development | http://www.justsoftwaresolutions.co.uk Registered in England, Company Number 5478976. Registered Office: 15 Carrallack Mews, St Just, Cornwall, TR19 7UL
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