py: Add basic _thread module, with ability to start a new thread.

This commit is contained in:
Damien George
2016-04-22 22:52:33 +00:00
parent 330165a2cc
commit 27cc07721b
9 changed files with 286 additions and 0 deletions

View File

@@ -160,6 +160,9 @@ STATIC const mp_rom_map_elem_t mp_builtin_module_table[] = {
#if MICROPY_PY_GC && MICROPY_ENABLE_GC
{ MP_ROM_QSTR(MP_QSTR_gc), MP_ROM_PTR(&mp_module_gc) },
#endif
#if MICROPY_PY_THREAD
{ MP_ROM_QSTR(MP_QSTR__thread), MP_ROM_PTR(&mp_module_thread) },
#endif
// extmod modules