summaryrefslogtreecommitdiffstatshomepage
path: root/py/objmodule.c
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-04-22 22:52:33 +0000
committerDamien George <damien.p.george@gmail.com>2016-06-28 11:28:48 +0100
commit27cc07721b3c3c2d0b9c8678c8a3ddc7fe96cd97 (patch)
tree38016a7b7e2f29c615bfc0dc14261b8ec0bf0173 /py/objmodule.c
parent330165a2cc9a0d4d5d00f13f851412c25d5f4ed2 (diff)
downloadmicropython-27cc07721b3c3c2d0b9c8678c8a3ddc7fe96cd97.tar.gz
micropython-27cc07721b3c3c2d0b9c8678c8a3ddc7fe96cd97.zip
py: Add basic _thread module, with ability to start a new thread.
Diffstat (limited to 'py/objmodule.c')
-rw-r--r--py/objmodule.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/py/objmodule.c b/py/objmodule.c
index 6d4b47958c..dc2ce787b4 100644
--- a/py/objmodule.c
+++ b/py/objmodule.c
@@ -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