Function: unsubscribe_report
|
C Prototype |
aclError aclrtUnSubscribeReport(uint64_t threadId, aclrtStream stream) |
|---|---|
|
Python Function |
ret = acl.rt.unsubscribe_report(thread_id, stream) |
|
Function Usage |
In asynchronous task scenarios, call this API to unsubscribe from a thread. The callback function in the stream will be no longer processed by the thread.
This API must be work with the following APIs to implement the callback function in asynchronous scenarios:
|
|
Input Description |
thread_id: int, thread ID. stream: int, pointer address of the stream to be processed. |
|
Return Value |
ret: int, error code.
|
|
Restrictions |
None |
|
Reference |
Parent topic: Execution Control