[Boost-bugs] [ boost-Bugs-1305885 ] Exception safety in class "thread"

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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/boost-bugs
participants (1)
-
SourceForge.net