Function: start_thread
C Prototype |
None |
|---|---|
Python Function |
thr_id, ret = acl.util.start_thread(thr_func, args_list) |
Function Description |
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 |
When a thread is created, the context cannot be automatically obtained. You need to call the acl.rt.set_context API to explicitly specify the context. |
Parent topic: thread