summaryrefslogtreecommitdiff
path: root/tools/codeformat.py
diff options
context:
space:
mode:
authorLaurens Valk <laurens@pybricks.com>2021-10-26 10:47:04 +0200
committerDamien George <damien@micropython.org>2021-11-01 15:39:37 +1100
commitfe120484b67bdc114dbbc2b9bd913fab98c82778 (patch)
tree8e4ed6f1158b2b8c12b48b991c0298cb8065f75a /tools/codeformat.py
parent693b927687c3ac18726a5eb7b64127fc347a3c41 (diff)
py/gc: Add hook to run code during time consuming GC operations.
This makes it possible for cooperative multitasking systems to keep running event loops during garbage collector operations. For example, this can be used to ensure that a motor control loop runs approximately each 5 ms. Without this hook, the loop time can jump to about 15 ms. Addresses #3475. Signed-off-by: Laurens Valk <laurens@pybricks.com>
Diffstat (limited to 'tools/codeformat.py')
0 files changed, 0 insertions, 0 deletions