std::vector<ActivityPtr> activities_; // Use vectors, not sets for better reproductibility accross architectures
std::vector<ActivityPtr> failed_activities_;
+ void handle_failed_activities();
+
public:
ActivitySet() = default;
ActivitySet(const std::vector<ActivityPtr> init) : activities_(init) {}
*/
ActivityPtr wait_any() { return wait_any_for(-1); }
+ /** Return one of the failed activity of the set that was revealed during the previous wait operation, or
+ * ActivityPtr() if no failed activity exist in the set. */
ActivityPtr get_failed_activity();
+ /** Return whether the set contains any failed activity. */
bool has_failed_activities() { return not failed_activities_.empty(); }
// boost::intrusive_ptr<ActivitySet> support: