bool wasSetByUser() const;
void set(const type& v);
const char* getName() const;
-}} {name} CVC4_PUBLIC;"""
+}} thread_local {name} CVC4_PUBLIC;"""
TPL_OPTION_STRUCT_RO = \
"""extern struct CVC4_PUBLIC {name}__option_t
type operator()() const;
bool wasSetByUser() const;
const char* getName() const;
-}} {name} CVC4_PUBLIC;"""
+}} thread_local {name} CVC4_PUBLIC;"""
TPL_DECL_SET = \
accs.append(TPL_IMPL_WAS_SET_BY_USER.format(name=option.name))
# Global definitions
- defs.append('struct {name}__option_t {name};'.format(name=option.name))
+ defs.append('thread_local struct {name}__option_t {name};'.format(name=option.name))
if option.mode:
values = option.mode.keys()