vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
completion_notifier.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/export.hpp>
6
7#include <exception>
8
9namespace vitrio
10{
11
19class VITRIO_API completion_notifier
20{
21public:
22 completion_notifier() = default;
23 completion_notifier(const completion_notifier &other) = default;
25 virtual ~completion_notifier() = default;
26
28 operator=(const completion_notifier &other) = default;
30 operator=(completion_notifier &&other) = default;
31
44 virtual void notify_done(std::exception_ptr error = nullptr) = 0;
45};
46
47} // namespace vitrio
Where a finished unit of work is reported.
Definition completion_notifier.hpp:20
virtual void notify_done(std::exception_ptr error=nullptr)=0
Report that one unit of work has finished.