Function: wait_and_reset_notify
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Makes a stream wait on a Notify, and then resets the Notify.
Prototype
- C Prototype
aclError aclrtWaitAndResetNotify(aclrtNotify notify, aclrtStream stream, uint32_t timeout)
- Python Function
1ret = acl.rt.wait_and_reset_notify(notify, stream, timeout)
Parameter Description
Parameter |
Description |
|---|---|
notify |
Int, pointer address of the Notify to be recorded. |
stream |
Int, pointer address of the stream. For example, in the scenario where Stream2 waits for Stream1, set this parameter to Stream2. Pass 0 if the default stream is used. |
timeout |
Int, timeout interval of the wait. The options are as follows: 0: waits forever. > 0: specific timeout interval, in milliseconds. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, 0 on success; else, failure. |
Parent topic: Notify Management