Boost logo

Boost Users :

From: Frank Mori Hess (fmhess_at_[hidden])
Date: 2007-08-11 17:36:52


On Friday 10 August 2007 21:13, Peter Dimov wrote:
> There's a discussion on the committee -lib reflector at the moment which
> has raised an interesting point: if no futures remain, it might be
> desirable (in some cases) to cancel the thread that is executing the
> task as nobody is listening for the result.

I personally like being able to "fire and forget" without having to keep
the future around to prevent the asyncronous function call from cancelling
itself. Especially in the case of a future<void> return value.

-- 
Frank



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