transwarp
Public Member Functions | List of all members
transwarp::releaser Class Reference

The releaser will release a task's future when the task's after_satisfied event was received which happens when all children received the task's result. The releaser should be used in cases where the task's result is only needed for consumption by its children and can then be discarded. More...

#include <transwarp.h>

Inheritance diagram for transwarp::releaser:
Inheritance graph
[legend]
Collaboration diagram for transwarp::releaser:
Collaboration graph
[legend]

Public Member Functions

 releaser (std::shared_ptr< transwarp::executor > executor)
 The executor gives control over where a task's future is released.
 
 releaser (const releaser &)=delete
 
releaseroperator= (const releaser &)=delete
 
 releaser (releaser &&)=delete
 
releaseroperator= (releaser &&)=delete
 
void handle_event (const transwarp::event_type event, transwarp::itask &task) override
 This may be called from arbitrary threads depending on the event type (see transwarp::event_type). The implementer needs to ensure that this never throws exceptions.
 

Detailed Description

The releaser will release a task's future when the task's after_satisfied event was received which happens when all children received the task's result. The releaser should be used in cases where the task's result is only needed for consumption by its children and can then be discarded.


The documentation for this class was generated from the following file: