|
rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
|
Tells the host which commands of a queue have finished. More...
#include <rexlib/core/hardware/command_timeline.hpp>
Public Member Functions | |
| command_timeline (const command_timeline &other)=delete | |
| command_timeline (command_timeline &&other)=delete | |
| command_timeline & | operator= (const command_timeline &other)=delete |
| command_timeline & | operator= (command_timeline &&other)=delete |
| virtual void | wait (std::size_t id) const =0 |
| Block the calling thread until a command has finished. | |
| virtual bool | is_complete (std::size_t id) const =0 |
| Check whether a command has finished. | |
Tells the host which commands of a queue have finished.
A timeline gives an id to every command of its command_queue. Only the timeline that gave an id can interpret it.
A timeline stays usable after its queue is destroyed.
Check whether a command has finished.
Does not block the calling thread.
| id | The id this timeline gave to the command. |
Block the calling thread until a command has finished.
Returns immediately if the command has already finished.
| id | The id this timeline gave to the command. |