kopia lustrzana https://github.com/micropython/micropython
ffb43b2dd3
In CPython, `_thread.start_new_thread()` returns an ID that is the same ID that is returned by `_thread.get_ident()`. The current MicroPython implementation of `_thread.start_new_thread()` always returns `None`. This modifies the required functions to return a value. The native thread id is returned since this can be used for interop with other functions, for example, `pthread_kill()` on *nix. `_thread.get_ident()` is also modified to return the native thread id so that the values match and avoids the need for a separate `native_id` attribute. Fixes issue #12153. Signed-off-by: David Lechner <david@pybricks.com> |
||
---|---|---|
.. | ||
mutate_bytearray.py | ||
mutate_dict.py | ||
mutate_instance.py | ||
mutate_list.py | ||
mutate_set.py | ||
stress_aes.py | ||
stress_create.py | ||
stress_heap.py | ||
stress_recurse.py | ||
stress_schedule.py | ||
stress_schedule.py.exp | ||
thread_exc1.py | ||
thread_exc2.py | ||
thread_exc2.py.exp | ||
thread_exit1.py | ||
thread_exit2.py | ||
thread_gc1.py | ||
thread_heap_lock.py | ||
thread_heap_lock.py.exp | ||
thread_ident1.py | ||
thread_lock1.py | ||
thread_lock2.py | ||
thread_lock3.py | ||
thread_lock4.py | ||
thread_lock5.py | ||
thread_qstr1.py | ||
thread_shared1.py | ||
thread_shared2.py | ||
thread_sleep1.py | ||
thread_stacksize1.py | ||
thread_start1.py | ||
thread_start2.py |