Return deferred future if thread cannot be run
authorJonathan Wakely <jwakely@redhat.com>
Sat, 24 Oct 2015 21:36:50 +0000 (22:36 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Sat, 24 Oct 2015 21:36:50 +0000 (22:36 +0100)
commit6fbd5984000d529e88e83d2472d53218fc5e49b4
tree1712e808980efaee23bc8f5193e388cc0c40cf16
parent4381322d6eddf1d162f35e4965b55fcb23808d3c
Return deferred future if thread cannot be run

* include/std/future (async): Use deferred function on exception.
* testsuite/30_threads/async/except.cc: New.

From-SVN: r229289
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/future
libstdc++-v3/testsuite/30_threads/async/except.cc [new file with mode: 0644]