Use thread-local storage to cache run-time options

This commit is contained in:
Evan Miller
2020-11-12 13:38:32 -05:00
parent 1bef1b1dca
commit df48fcb284

View File

@@ -24,8 +24,8 @@
#define DEBUG 1
static unsigned long opts;
static int optset;
static __thread unsigned long opts;
static __thread int optset;
static void load_options(void);