circuitpython/ports
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>
2023-09-03 18:49:18 +10:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 py/modthread: Return thread id from start_new_thread(). 2023-09-03 18:49:18 +10:00
embed all: Rename *umodule*.c to remove the "u" prefix. 2023-06-08 17:54:17 +10:00
esp32 py/modthread: Return thread id from start_new_thread(). 2023-09-03 18:49:18 +10:00
esp8266 esp8266/boards/ESP8266_GENERIC: Add image filename. 2023-08-24 17:15:32 +10:00
mimxrt mimxrt/machine_uart: Support slow baud rates for UART. 2023-09-01 00:41:23 +10:00
minimal all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
nrf nrf/boards: Rename all nRF boards to use uppercase. 2023-08-23 13:54:37 +10:00
pic16bit ports: Implement simple write polling for stdout. 2023-03-23 13:51:17 +11:00
powerpc all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
qemu-arm examples: Mark asm, pio, etc. as noqa: F821 (undefined-name). 2023-08-16 16:12:33 +10:00
renesas-ra py/modthread: Return thread id from start_new_thread(). 2023-09-03 18:49:18 +10:00
rp2 py/modthread: Return thread id from start_new_thread(). 2023-09-03 18:49:18 +10:00
samd samd/modules/_boot.py: Add /lib to sys.path. 2023-09-02 00:09:26 +10:00
stm32 py/modthread: Return thread id from start_new_thread(). 2023-09-03 18:49:18 +10:00
teensy ports: Standardise docs link in help text. 2023-06-02 11:48:46 +10:00
unix py/modthread: Return thread id from start_new_thread(). 2023-09-03 18:49:18 +10:00
webassembly webassembly: Replace typeof window check with ENVIRONMENT_IS_NODE flag. 2023-07-13 13:24:35 +10:00
windows extmod/moddeflate: Add deflate module providing the DeflateIO class. 2023-07-21 19:32:40 +10:00
zephyr py/mkrules.mk: Automatically configure frozen options when manifest set. 2023-06-08 23:12:56 +10:00