Function: record_notify
Applicability
Product |
Supported (√/x) |
|---|---|
√ |
|
√ |
|
√ |
|
√ |
|
√ |
Function Usage
Records a Notify in a specified stream. The acl.rt.record_notify and acl.rt.wait_and_reset_notify APIs are used together to implement synchronization between multiple streams.
Prototype
- C Prototype
aclError aclrtRecordNotify(aclrtNotify notify, aclrtStream stream)
- Python Function
1ret = acl.rt.record_notify(notify, stream)
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 Stream1. Pass 0 if the default stream is used. |
Return Value Description
Return Value |
Description |
|---|---|
ret |
Int, 0 on success; else, failure. |
Parent topic: Notify Management