vitrio 0.1.4
High-throughput image I/O for Cryo-Electron Microscopy (CryoEM)
Loading...
Searching...
No Matches
completion.hpp
1// SPDX-License-Identifier: LGPL-2.1-or-later
2
3#pragma once
4
5#include <vitrio/export.hpp>
6
7namespace vitrio
8{
9
17class VITRIO_API completion
18{
19public:
20 completion() = default;
21 completion(const completion &other) = default;
22 completion(completion &&other) = default;
23 virtual ~completion() = default;
24
25 completion& operator=(const completion &other) = default;
26 completion& operator=(completion &&other) = default;
27
31 virtual void wait() const = 0;
32
39 virtual bool is_ready() const noexcept = 0;
40
46 virtual void get() const = 0;
47};
48
49} // namespace vitrio
A query-only view of whether one or more units of work have finished.
Definition completion.hpp:18
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.