You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After some digging into boost(!) the exact same functionality as suggested in #203 can be accomplished by defining BOOST_THREAD_PROVIDES_EXECUTORS and use boost::inline_executor as executor on the future continuations. So #203 is totally unnecessary, Well, you live and learn... If that's the way we end up using remains to be seen...
yeah, these features still seem to be very newish and lacking in docs. historically (when we started autobahnc++), even mere futures in boost were mildly problematic;) things have improved these days ..
Add an example:
The 5 calls should run concurrently (the sum of all 5 results is printed after <=5s) and the caller (and callee) must be single-threaded.
To dispatch a future on the main/current thread:
To get the thread id:
boost::this_thread::get_id()
To wait for a set of futures:
boost::wait_for_all(f1, f2, f3, f4, f5);
The text was updated successfully, but these errors were encountered: