|
vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
|
A query-only view of whether one or more units of work have finished. More...
#include <vitrio/concurrency/completion.hpp>

Public Member Functions | |
| completion (const completion &other)=default | |
| completion (completion &&other)=default | |
| completion & | operator= (const completion &other)=default |
| completion & | operator= (completion &&other)=default |
| virtual void | wait () const =0 |
| Block the calling thread until this is ready. | |
| virtual bool | is_ready () const noexcept=0 |
| Whether the work behind this has finished. | |
| virtual void | get () const =0 |
| Wait, then rethrow the first exception recorded, if any. | |
A query-only view of whether one or more units of work have finished.
Carries no way to mark itself done: that belongs to the disjoint completion_notifier, which a caller holding this is never handed.
Wait, then rethrow the first exception recorded, if any.
| Whatever | the first unit of work to fail threw. |
Implemented in vitrio::counting_completion.
Whether the work behind this has finished.
Implemented in vitrio::counting_completion.
Block the calling thread until this is ready.
Implemented in vitrio::counting_completion.