Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2005-09-27 08:54:47

Bugs item #1305885, was opened at 2005-09-27 06:54
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: threads
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Mike Glassford (glassfordm)
Summary: Exception safety in class "thread"

Initial Comment:
If an exception is thrown during the copying of the
"threadfunc" object in function "thread_proxy", the new
thread silently ends and the constructor of class
"thread" never returns.

Therefore I would suggest to put a copy of "threadfunc"
in the "thread_param" object (instead of a reference)
and move it to the local variable in function
"thread_proxy" via "threadfunc.swap(…)".

In this way a potential exception would be thrown in
the constructor of class "thread" and could be handled
by the application.


You can respond by visiting:

SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play:
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at