This commit adds micropython.heap_locked() which returns the current lock-depth of the heap, and can be used by Python code to check if the heap is locked or not. This new function is configured via MICROPY_PY_MICROPYTHON_HEAP_LOCKED and is disabled by default. This commit also changes the return value of micropython.heap_unlock() so it returns the current lock-depth as well. |
||
|---|---|---|
| .. | ||
| bare-arm | ||
| cc3200 | ||
| esp32 | ||
| esp8266 | ||
| javascript | ||
| mimxrt | ||
| minimal | ||
| nrf | ||
| pic16bit | ||
| powerpc | ||
| qemu-arm | ||
| samd | ||
| stm32 | ||
| teensy | ||
| unix | ||
| windows | ||
| zephyr | ||