Function: start_thread
C Prototype |
None |
|---|---|
Python Function |
thr_id, ret = acl.util.start_thread(thr_func, args_list) |
Function Usage |
Creates a thread and execute the Python function in the thread. |
Input Description |
thr_func: Python function object, user-defined Python function. Example: def thr_func(args_list): pass args_list: list, arguments of the user-defined Python function (thr_func). |
Return Value |
thr_id: int, thread ID. ret: int, error code.
|
Restrictions |
If the context cannot be automatically obtained during the thread creation, the acl.rt.set_context API is called to explicitly specify the context. |
Parent topic: thread