diff options
author | Damien George <damien.p.george@gmail.com> | 2016-05-26 10:53:34 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-06-28 11:28:50 +0100 |
commit | a1c93a62b1d1020c5ef3ce1744469a118433d0e5 (patch) | |
tree | 1c03b8e373477e46581a046b8c7dede182d6fbaa /py/qstr.c | |
parent | 4cec63a9dbed86c4332b9e7fcd56d092046193e4 (diff) |
py: Don't use gc or qstr mutex when the GIL is enabled.
There is no need since the GIL already makes gc and qstr operations
atomic.
Diffstat (limited to 'py/qstr.c')
-rw-r--r-- | py/qstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -72,7 +72,7 @@ #error unimplemented qstr length decoding #endif -#if MICROPY_PY_THREAD +#if MICROPY_PY_THREAD && !MICROPY_PY_THREAD_GIL #define QSTR_ENTER() mp_thread_mutex_lock(&MP_STATE_VM(qstr_mutex), 1) #define QSTR_EXIT() mp_thread_mutex_unlock(&MP_STATE_VM(qstr_mutex)) #else |