2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-30 20:32:10 +00:00

Thread: deprecate nested scoped locks and DateTime based timed fuctions

[SVN r81279]
This commit is contained in:
Vicente J. Botet Escriba
2012-11-10 10:25:33 +00:00
parent 5c5c818bc5
commit 0cd8326f21
58 changed files with 584 additions and 345 deletions

View File

@@ -15,7 +15,7 @@ boost::future<int> compute(int x)
if (x == 0) return boost::make_future(0);
if (x < 0) return boost::make_future(-1);
//boost::future<int> f1 = boost::async([]() { return x+1; });
boost::future<int> f1 = boost::async(p1);
boost::future<int> f1 = boost::async(boost::launch::async, p1);
return boost::move(f1);
}
boost::shared_future<int> shared_compute(int x)