Boost logo

Boost :

From: SourceForge.net (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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1305885&group_id=7586

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:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=1305885&group_id=7586

-------------------------------------------------------
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: http://sourceforge.net/geronimo.php
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk