File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
source/loader/layers/tracing Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,15 @@ struct XptiContextManager {
34
34
~XptiContextManager () { xptiFrameworkFinalize (); }
35
35
};
36
36
37
- static std::shared_ptr<XptiContextManager> xptiContextManagerGlobal = [] {
38
- return std::make_shared<XptiContextManager>();
39
- }();
37
+ static std::shared_ptr<XptiContextManager> xptiContextManagerGet () {
38
+ static auto contextManager = std::make_shared<XptiContextManager>();
39
+ return contextManager;
40
+ };
40
41
static thread_local xpti_td *activeEvent;
41
42
42
43
// /////////////////////////////////////////////////////////////////////////////
43
44
context_t::context_t () : logger(logger::create_logger(" tracing" , true , true )) {
44
- this ->xptiContextManager = xptiContextManagerGlobal ;
45
+ this ->xptiContextManager = xptiContextManagerGet () ;
45
46
46
47
call_stream_id = xptiRegisterStream (CALL_STREAM_NAME);
47
48
std::ostringstream streamv;
You can’t perform that action at this time.
0 commit comments