|
vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
|
Where a finished unit of work is reported. More...
#include <vitrio/concurrency/completion_notifier.hpp>

Public Member Functions | |
| completion_notifier (const completion_notifier &other)=default | |
| completion_notifier (completion_notifier &&other)=default | |
| completion_notifier & | operator= (const completion_notifier &other)=default |
| completion_notifier & | operator= (completion_notifier &&other)=default |
| virtual void | notify_done (std::exception_ptr error=nullptr)=0 |
| Report that one unit of work has finished. | |
Where a finished unit of work is reported.
Disjoint from completion on purpose: an executor is handed this, never the query side, and a caller of executor::submit is handed the query side back, never this.
|
pure virtual |
Report that one unit of work has finished.
Called exactly once per unit of work this notifier stands for.
| error | The exception the unit of work raised, or null if it succeeded. |
Implemented in vitrio::counting_completion.