Accelerated Computation Engine
Public Member Functions | List of all members
OpenCL::CommandQueue Class Reference

#include <opencl_commandqueue.h>

Inheritance diagram for OpenCL::CommandQueue:

Public Member Functions

 CommandQueue (Context *context, Device *device, QObject *parent=nullptr)
 
virtual ~CommandQueue () override final
 
cl_command_queue id () const
 
Devicedevice () const
 

Detailed Description

This contains an OpenCL command queue. This is a very basic class that simply maintains ownership of an underlying command queue. The main purpose of this class is to be used by other classes that add commands to its underlying command queue.

Constructor & Destructor Documentation

◆ CommandQueue()

CommandQueue::CommandQueue ( Context context,
Device device,
QObject *  parent = nullptr 
)
explicit

Constructs a new command queue with the given context, device, and optional parent. If the given device is not part of the given context then an exception is thrown.

Parameters
contextPointer to context this command queue is created from.
devicePointer to device this command queue is created from.
parentOptional parent for this new command queue.

◆ ~CommandQueue()

CommandQueue::~CommandQueue ( )
finaloverridevirtual

Releases the underlying OpenCL command queue resource.

Member Function Documentation

◆ device()

Device * CommandQueue::device ( ) const

Returns a pointer to the device that this command queue uses.

Returns
Pointer to device for this command queue.

◆ id()

cl_command_queue CommandQueue::id ( ) const

Returns the OpenCL command queue ID of this object.

Returns
OpenCL command queue ID of this object.

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