Boost logo

Boost Users :

From: Sebastian Redl (sebastian.redl_at_[hidden])
Date: 2006-12-27 17:29:02


Søren Dreijer wrote:
> Quick follow-up question:
> Why do you use auto_ptr<bool> when passing the flag_guard to the
> thread when you release it right afterwards? Is there a chance that
> thread's constructor or bind() might throw an exception?
Not bind, but I wouldn't be surprised if thread's constructor threw,
perhaps if the underlying system function failed.

Sebastian Redl


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