---
title: aclrtQueryEventStatus
description: 本接口是aclrtQueryEvent接口的扩展接口，可查询与本接口在同一线程或不同线程中的aclrtRecordEvent接口所记录的Event是否执行完成。同步接口。
url: "https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application%20Development%20Guide/aadgc/aclcppdevg_03_0071.html"
---

# aclrtQueryEventStatus

#### 函数功能

本接口是aclrtQueryEvent接口的扩展接口，可查询与本接口在同一线程或不同线程中的aclrtRecordEvent接口所记录的Event是否执行完成。同步接口。


#### 函数原型

aclError aclrtQueryEventStatus(aclrtEvent event, aclrtEventRecordedStatus *status)


#### 参数说明

| 参数名 | 输入/输出 | 说明 |
| --- | --- | --- |
| event | 输入 | 指定待查询的Event。 |
| status | 输出 | Event状态的指针。 |


#### 返回值说明

返回0表示成功，返回其它值表示失败。
