Poked around the MicroPython sources to satisfy my curiosity, and...
There is a MICROPY_PY_THREAD in the garbage collector:
https://github.com/micropython/micropyt ... er/py/gc.c
and there's some locking going on. Perhaps per-thread GC? No idea, I'm only browsing the code. As for threads:
https://github.com/micropython/micropyt ... mpthread.h
Heavy stuff is here:
https://github.com/micropython/micropyt ... odthread.c
Some TODOs, use at your own risk. Well, process/thread stuff is totally beyond my C coding skill level.
There is a MICROPY_PY_THREAD in the garbage collector:
https://github.com/micropython/micropyt ... er/py/gc.c
and there's some locking going on. Perhaps per-thread GC? No idea, I'm only browsing the code. As for threads:
https://github.com/micropython/micropyt ... mpthread.h
Heavy stuff is here:
https://github.com/micropython/micropyt ... odthread.c
Some TODOs, use at your own risk. Well, process/thread stuff is totally beyond my C coding skill level.
Statistics: Posted by katak255 — Tue Dec 17, 2024 6:20 pm