Wakes up and stops a blocked sending (acltdtSendTensor is called) or receiving (acltdtReceiveTensor is called) thread. This API is especially useful when a thread is blocked due to running out of data. To wake up and stop a blocked sending or receiving thread, call this API in a thread other than the blocked thread.
The Ascend 310 AI Processor does not support this API in the current version.
The Ascend 310P AI Processor does not support this API in the current version.
aclError acltdtStopChannel(acltdtChannelHandle *handle)
Parameter |
Input/Output |
Description |
|---|---|---|
handle |
Input |
Channel. Call acltdtCreateChannel or acltdtCreateChannelWithCapacity to create data of the acltdtChannelHandle type in advance. |
0 on success; else, failure.