aclrtUnSubscribeHostFunc
The
The
Description
Unsubscribes from a thread so that the callback function in the stream is no longer processed by the specified thread. This API must be used in pair with aclrtSubscribeHostFunc.
Prototype
aclError aclrtUnSubscribeHostFunc(uint64_t hostFuncThreadId, aclrtStream exeStream)
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
hostFuncThreadId |
Input |
Thread ID. |
exeStream |
Input |
Stream. |
Returns
The value 0 indicates success, and other values indicate failure. For details, see aclError.
Parent topic: Execution Control