rexlib 0.1.0
Device-agnostic array computing library for CryoEM and CryoET image processing, with a pluggable backend architecture
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rexlib::command_timeline Class Referenceabstract

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.
 

Detailed Description

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.

See also
command_token

Member Function Documentation

◆ is_complete()

virtual bool rexlib::command_timeline::is_complete ( std::size_t  id) const
pure virtual

Check whether a command has finished.

Does not block the calling thread.

Parameters
idThe id this timeline gave to the command.
Returns
true The command has finished.
false The command has not finished yet.

◆ wait()

virtual void rexlib::command_timeline::wait ( std::size_t  id) const
pure virtual

Block the calling thread until a command has finished.

Returns immediately if the command has already finished.

Parameters
idThe id this timeline gave to the command.

The documentation for this class was generated from the following file: