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_queue.hpp
1// SPDX-License-Identifier: GPL-3.0-only
2
3#pragma once
4
5#include <rexlib/core/hardware/command.hpp>
6#include <rexlib/core/hardware/command_token.hpp>
7#include <rexlib/core/platform/dynamic_shared_object.h>
8#include <rexlib/core/span.hpp>
9
10#include <memory>
11
12namespace rexlib
13{
14
26class REXLIB_API command_queue
27{
28public:
29 command_queue() noexcept;
30 command_queue(const command_queue &other) = delete;
31 command_queue(command_queue &&other) = delete;
32 virtual ~command_queue();
33
34 command_queue& operator=(const command_queue &other) = delete;
35 command_queue& operator=(command_queue &&other) = delete;
36
55 virtual command_token submit(command cmd) = 0;
56};
57
58} // namespace rexlib
Abstract command queue belonging to a device.
Definition command_queue.hpp:27
virtual command_token submit(command cmd)=0
Submit a command for execution on this queue.
Identifies a command submitted to a command_queue.
Definition command_token.hpp:27
Specification of work to be executed on a command_queue.
Definition command.hpp:31
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10