
27 Dec
2006
27 Dec
'06
3:29 p.m.
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