PXL
pxl::Stream Class Referenceabstract

An asynchronous work queue for device operations. More...

#include <stream.hpp>

Public Member Functions

virtual uint32_t streamId () const =0
 Gets the stream ID. More...
 

Protected Member Functions

 Stream ()=default
 Default constructor. More...
 
virtual ~Stream ()=default
 Default virtual destructor. More...
 

Detailed Description

An asynchronous work queue for device operations.

A Stream is an asynchronous work queue that holds a sequence of operations to be executed on a device. A stream issues its operations to the device in enqueue order: every task of an operation is submitted before any task of a later one. While the device cannot take an operation's remaining tasks, later operations wait in the stream, and Map::execute() blocks once the stream's queue is full. Completion is not ordered, so a later operation may start before an earlier one finishes. When an operation depends on another's result, synchronize the earlier Map first. A Map that is not bound to a stream uses its Job's default stream.

Definition at line 25 of file stream.hpp.

Constructor & Destructor Documentation

◆ Stream()

pxl::Stream::Stream ( )
protecteddefault

Default constructor.

◆ ~Stream()

virtual pxl::Stream::~Stream ( )
protectedvirtualdefault

Default virtual destructor.

Member Function Documentation

◆ streamId()

virtual uint32_t pxl::Stream::streamId ( ) const
pure virtual

Gets the stream ID.

Returns
The stream ID.

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