Damien George 1a5c8d1053 py/vm: Don't release the GIL if the scheduler is locked.
The scheduler being locked general means we are running a scheduled
function, and switching to another thread violates that, so don't switch in
such a case (even though we technically could).

And if we are running a scheduled function then we want to finish it ASAP,
so we shouldn't switch to another thread.

Furthermore, ports with threading enabled will lock the scheduler during a
hard IRQ, and this patch to the VM will make sure that threads are not
switched during a hard IRQ (which would crash the VM).
2017-03-20 18:42:27 +11:00
..
2017-02-17 12:48:45 +11:00
2017-03-08 22:36:02 +11:00
2017-03-07 16:48:09 +01:00
2017-02-16 18:38:06 +11:00
2017-02-16 18:38:06 +11:00
2015-11-13 12:49:18 +00:00
2017-01-27 17:19:06 +11:00