[patch] Make std::async return deferred if thread creation fails

Jonathan Wakely jwakely@redhat.com
Sat Oct 24 21:37:00 GMT 2015


This implements a suggestion from Nico that if the user requested
launch::async|launch::deferred and trying to create a new thread fails
then we should return a deferred function instead.

Tested powerp64le-linux, committed to trunk.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 3812 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20151024/af69549f/attachment.bin>


More information about the Libstdc++ mailing list