Restore init thread-local var in mdc.h, not use reference-init
This commit is contained in:
parent
d89fff6c7c
commit
8841b7e2d5
@ -38,7 +38,7 @@ public:
|
|||||||
static void clear() { get_context().clear(); }
|
static void clear() { get_context().clear(); }
|
||||||
|
|
||||||
static mdc_map_t &get_context() {
|
static mdc_map_t &get_context() {
|
||||||
static thread_local mdc_map_t& context = *new mdc_map_t;
|
static thread_local mdc_map_t context;
|
||||||
return context;
|
return context;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user