Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions
OperationList< T > Class Template Reference
Inheritance diagram for OperationList< T >:
OperationListBase

Public Member Functions

 OperationList ()
 Create a new empty operation list. More...
 
 ~OperationList ()
 Destroy this object and abort all operations. More...
 
void add (T *op)
 Add an operation to the list. More...
 
void remove (T *op)
 Remove an operation from the list. More...
 
T * dequeue_raw ()
 Dequeue the head of the list. More...
 
bool empty ()
 Check if the list is empty. More...
 
void add (AsyncOp *op)
 Add an operation to the list. More...
 
void remove (AsyncOp *op)
 Remove an operation from the list. More...
 
void remove_all ()
 Abort all operations. More...
 
void process ()
 Process the operation list. More...
 

Detailed Description

template<class T>
class OperationList< T >

Definition at line 25 of file OperationList.h.

Constructor & Destructor Documentation

Create a new empty operation list.

Definition at line 31 of file OperationList.h.

Destroy this object and abort all operations.

Definition at line 39 of file OperationList.h.

Member Function Documentation

void add ( T *  op)

Add an operation to the list.

If the list was empty then call process on this operation

Parameters
opOperation to add

Definition at line 51 of file OperationList.h.

void add ( AsyncOp op)
inherited

Add an operation to the list.

If the list was empty then call process on this operation

Parameters
opOperation to add
T* dequeue_raw ( )

Dequeue the head of the list.

Remove the head of the operation list without completing it or processing the next element. The caller must call the AsnycOp::complete() function of the returned object. Additionally process() must be called on this object if there are still elements in the list.

Returns
The async op at the head of the list

Definition at line 80 of file OperationList.h.

bool empty ( )
inherited

Check if the list is empty.

Returns
true if the list is empty false otherwise
void process ( )
inherited

Process the operation list.

This allow the operation at the head of the list to perform processing

void remove ( T *  op)

Remove an operation from the list.

If this was the head of the list then process the next element in the list.

Parameters
opOperation to remove

Definition at line 64 of file OperationList.h.

void remove ( AsyncOp op)
inherited

Remove an operation from the list.

If this was the head of the list then process the next element in the list.

Parameters
opOperation to remove
void remove_all ( )
inherited

Abort all operations.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.