Function: query_event_status
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Queries the execution status of all tasks captured in an event. For more details, see acl.rt.record_event.
Prototype
- C Prototype
1aclError aclrtQueryEventStatus(aclrtEvent event, aclrtEventRecordedStatus *status)
- Python Function
1status, ret = acl.rt.query_event_status(event)
Parameter Description
Parameter |
Description |
|---|---|
event |
Int, pointer address of the event object to be queried. |
Return Value Description
Return Value |
Description |
|---|---|
status |
Int, pointer address of the event status.
|
ret |
Int, error code: 0 on success; else, failure. |
Restrictions
If acl.rt.record_event and acl.rt.query_event_status are called on different threads, the execution time of the two APIs may be out of order. As a result, the completion status of the queried event object does not meet the expectation.