Replace one more occurrence of non-standard std:launch::any. Patch from STL@microsoft.com

llvm-svn: 268153
This commit is contained in:
Eric Fiselier 2016-04-30 02:30:18 +00:00
parent 17e9754dd4
commit 53ca3c93db
1 changed files with 3 additions and 3 deletions

View File

@ -132,7 +132,7 @@ int main()
test<void>(checkVoid, DPID, f2); test<void>(checkVoid, DPID, f2);
test<void>(checkVoid, false, std::launch::async, f2); test<void>(checkVoid, false, std::launch::async, f2);
test<void>(checkVoid, true, std::launch::deferred, f2); test<void>(checkVoid, true, std::launch::deferred, f2);
test<void>(checkVoid, DPID, std::launch::any, f2); test<void>(checkVoid, DPID, AnyPolicy, f2);
} }
{ {
using Ret = std::unique_ptr<int>; using Ret = std::unique_ptr<int>;
@ -143,11 +143,11 @@ int main()
{ {
std::future<void> f = std::async(f5, 3); std::future<void> f = std::async(f5, 3);
std::this_thread::sleep_for(ms(300)); std::this_thread::sleep_for(ms(300));
try { f.get(); assert (false); } catch ( int ex ) {} try { f.get(); assert (false); } catch ( int ) {}
} }
{ {
std::future<void> f = std::async(std::launch::deferred, f5, 3); std::future<void> f = std::async(std::launch::deferred, f5, 3);
std::this_thread::sleep_for(ms(300)); std::this_thread::sleep_for(ms(300));
try { f.get(); assert (false); } catch ( int ex ) {} try { f.get(); assert (false); } catch ( int ) {}
} }
} }