EventOperation

Definition

struct EventParam {
    enum OperatorType : int {
        UNDEFINED = 0, 
        RECORD,    
        WAIT       
    };
    aclrtEvent event;
    OperatorType operatorType = UNDEFINED;
    uint8_t rsv[16] = {0};
};  

Parameters

Member

Type

Default Value

Description

OperatorType

int

UNDEFINED

Value of OperatorType.

  • UNDEFINED: default value. No operation is performed.
  • RECORD: records an event in a stream.
  • WAIT: blocks the execution of a stream until the specified event is complete.

event

aclrtEvent

-

Event that requires RECORD or WAIT.

operatorType

OperatorType

UNDEFINED

Operator type. The value can be UNDEFINED, RECORD, or WAIT.

rsv[16]

uint8_t

{0}

Reserved parameter.