---
title: EventOperation
description: "```"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/ascendtb/ascendtb_0091.html
sourcePath: /source/zh/canncommercial/900/API/ascendtb/ascendtb_0091.html
indexId: b7ec356e9b0d8c7588cbfa34ad725cd732b60de193f258886339373cfcf5413361
---
# EventOperation

#### 定义

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


#### 参数列表

| 成员名称 | 类型 | 默认值 | 描述 |
| --- | --- | --- | --- |
| OperatorType | int | UNDEFINED | OperatorType支持的值。 UNDEFINED：默认值，不做任何操作。 RECORD：在Stream中记录一个Event。 WAIT：阻塞指定Stream的运行，直至指定的Event完成。 |
| event | aclrtEvent | \- | 需要RECORD或者WAIT的Event。 |
| operatorType | OperatorType | UNDEFINED | OperatorType，支持UNDEFINED、RECORD和WAIT。 |
| rsv[16] | uint8\_t | {0} | 预留参数。 |
