---
title: aclrtQueryEventWaitStatus
description: "调用aclrtStreamWaitEvent接口后，查询Stream是否接收到指定Event。如果多个Stream等待同一个Event，则多个Stream都接收到Event，通过该接口查询的Event状态才是已完成。同步接口。"
url: https://www.hiascend.com/document/detail/zh/Atlas200IDKA2DeveloperKit/latest/Application%20Development%20Guide/aadgc/aclcppdevg_03_0072.html
sourcePath: /source/zh/Atlas200IDKA2DeveloperKit/23.0.RC2/Application Development Guide/aadgc/aclcppdevg_03_0072.html
indexId: 5f56b167567b373c09b5c59855f939be70240b0102364411ab844afeb984afe4105
---
# aclrtQueryEventWaitStatus

#### 函数功能

调用aclrtStreamWaitEvent接口后，查询Stream是否接收到指定Event。如果多个Stream等待同一个Event，则多个Stream都接收到Event，通过该接口查询的Event状态才是已完成。同步接口。


#### 函数原型

aclError aclrtQueryEventWaitStatus(aclrtEvent event, aclrtEventWaitStatus *status)


#### 参数说明

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


#### 返回值说明

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