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 {
3434 ~XptiContextManager () { xptiFrameworkFinalize (); }
3535};
3636
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+ };
4041static thread_local xpti_td *activeEvent;
4142
4243// /////////////////////////////////////////////////////////////////////////////
4344context_t::context_t () : logger(logger::create_logger(" tracing" , true , true )) {
44- this ->xptiContextManager = xptiContextManagerGlobal ;
45+ this ->xptiContextManager = xptiContextManagerGet () ;
4546
4647 call_stream_id = xptiRegisterStream (CALL_STREAM_NAME);
4748 std::ostringstream streamv;
You can’t perform that action at this time.
0 commit comments