diff options
Diffstat (limited to 'py/mpstate.h')
-rw-r--r-- | py/mpstate.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/py/mpstate.h b/py/mpstate.h index f1f8fd9c57..3ee243dffa 100644 --- a/py/mpstate.h +++ b/py/mpstate.h @@ -164,6 +164,11 @@ typedef struct _mp_state_vm_t { size_t qstr_last_alloc; size_t qstr_last_used; + #if MICROPY_PY_THREAD + // This is a global mutex used to make qstr interning thread-safe. + mp_thread_mutex_t qstr_mutex; + #endif + mp_uint_t mp_optimise_value; // size of the emergency exception buf, if it's dynamically allocated |