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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user