Skip to content
Snippets Groups Projects
Commit 1b7487e5 authored by Damien George's avatar Damien George
Browse files

py/vm: Adjust #if logic for gil_divisor so braces are balanced.

Having balanced braces { and } makes it easier to navigate the function.
parent b9ff46f1
No related branches found
No related tags found
No related merge requests found
......@@ -1322,11 +1322,12 @@ pending_exception_check:
#if MICROPY_PY_THREAD_GIL
#if MICROPY_PY_THREAD_GIL_VM_DIVISOR
if (--gil_divisor == 0) {
gil_divisor = MICROPY_PY_THREAD_GIL_VM_DIVISOR;
#else
{
if (--gil_divisor == 0)
#endif
{
#if MICROPY_PY_THREAD_GIL_VM_DIVISOR
gil_divisor = MICROPY_PY_THREAD_GIL_VM_DIVISOR;
#endif
#if MICROPY_ENABLE_SCHEDULER
// can only switch threads if the scheduler is unlocked
if (MP_STATE_VM(sched_state) == MP_SCHED_IDLE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment