Function: stop_thread
Applicable Products
- Ascend 950PR&950DT products: Supported
- Atlas A3 products: Supported
- Atlas A2 products: Supported
- Atlas 200I/500 A2 inference products: Not supported
- Atlas inference products: Not supported
- Atlas training products: Supported
Function
Waits for the thread created by acl.util.start_thread to exit.
Prototype
ret = acl.util.stop_thread(thr_id)
Parameters
| Parameter | Description |
|---|---|
| thr_id | Int, thread ID. The thread ID obtained by acl.util.start_thread must be specified. |
Return Values
| Return Value | Description |
|---|---|
| ret | Int, error code.0: successIf other values are returned, the operation fails. |