py/runtime: Unlock the GIL in mp_deinit function.

This mirrors what is done in mp_init.  Some RTOSs require this symmetry to
get back to a clean state (when doing a soft reset, for example).
This commit is contained in:
Damien George 2018-12-27 14:20:31 +11:00
parent 7cd59c5bc3
commit fa50047bbc
1 changed files with 2 additions and 0 deletions

View File

@ -129,6 +129,8 @@ void mp_init(void) {
}
void mp_deinit(void) {
MP_THREAD_GIL_EXIT();
//mp_obj_dict_free(&dict_main);
//mp_map_deinit(&MP_STATE_VM(mp_loaded_modules_map));