rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
command_timeline.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/platform/dynamic_shared_object.h>
6
7#include <cstddef>
8
9namespace rexlib
10{
11
22class REXLIB_API command_timeline
23{
24public:
25 command_timeline() noexcept;
26 command_timeline(const command_timeline &other) = delete;
27 command_timeline(command_timeline &&other) = delete;
28 virtual ~command_timeline();
29
30 command_timeline& operator=(const command_timeline &other) = delete;
31 command_timeline& operator=(command_timeline &&other) = delete;
32
40 virtual void wait(std::size_t id) const = 0;
41
51 virtual bool is_complete(std::size_t id) const = 0;
52};
53
54} // namespace rexlib
Tells the host which commands of a queue have finished.
Definition command_timeline.hpp:23
virtual bool is_complete(std::size_t id) const =0
Check whether a command has finished.
virtual void wait(std::size_t id) const =0
Block the calling thread until a command has finished.
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10