You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Lechner
ffb43b2dd3
py/modthread: Return thread id from start_new_thread().
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>
1 year ago
..
mutate_bytearray.py
top: Update Python formatting to black "2023 stable style".
2 years ago
mutate_dict.py
top: Update Python formatting to black "2023 stable style".
2 years ago
mutate_instance.py
top: Update Python formatting to black "2023 stable style".
2 years ago
mutate_list.py
top: Update Python formatting to black "2023 stable style".
2 years ago
mutate_set.py
top: Update Python formatting to black "2023 stable style".
2 years ago
stress_aes.py
tests: Replace umodule with module everywhere.
1 year ago
stress_create.py
tests: Replace umodule with module everywhere.
1 year ago
stress_heap.py
tests: Replace umodule with module everywhere.
1 year ago
stress_recurse.py
tests: Format all Python code with black, except tests in basics subdir.
5 years ago
stress_schedule.py
tests: Replace umodule with module everywhere.
1 year ago
stress_schedule.py.exp
py/scheduler: Add assert that scheduler is locked when unlocking.
5 years ago
thread_exc1.py
tests/thread: Make exc1,exit1,exit2,stacksize1,start1 tests run on rp2.
4 years ago
thread_exc2.py
tests: Replace umodule with module everywhere.
1 year ago
thread_exc2.py.exp
tests: Format all Python code with black, except tests in basics subdir.
5 years ago
thread_exit1.py
tests: Replace umodule with module everywhere.
1 year ago
thread_exit2.py
tests: Replace umodule with module everywhere.
1 year ago
thread_gc1.py
tests: Format all Python code with black, except tests in basics subdir.
5 years ago
thread_heap_lock.py
py/gc: Make gc_lock_depth have a count per thread.
4 years ago
thread_heap_lock.py.exp
py/gc: Make gc_lock_depth have a count per thread.
4 years ago
thread_ident1.py
py/modthread: Return thread id from start_new_thread().
1 year ago
thread_lock1.py
all: Fix spelling mistakes based on codespell check.
2 years ago
thread_lock2.py
tests: Replace umodule with module everywhere.
1 year ago
thread_lock3.py
tests: Format all Python code with black, except tests in basics subdir.
5 years ago
thread_lock4.py
tests: Replace umodule with module everywhere.
1 year ago
thread_lock5.py
esp32/mpthreadport: Use binary semaphore instead of mutex.
4 years ago
thread_qstr1.py
tests: Replace umodule with module everywhere.
1 year ago
thread_shared1.py
tests: Format all Python code with black, except tests in basics subdir.
5 years ago
thread_shared2.py
tests: Format all Python code with black, except tests in basics subdir.
5 years ago
thread_sleep1.py
tests: Replace umodule with module everywhere.
1 year ago
thread_stacksize1.py
tests: Replace umodule with module everywhere.
1 year ago
thread_start1.py
tests: Replace umodule with module everywhere.
1 year ago
thread_start2.py
tests: Replace umodule with module everywhere.
1 year ago