Skip to main content

Module get_thread_context

Module get_thread_context 

Source
Expand description

Source: Common/src/TimeTrace.cpp:253-261 (hand-ported) C++:

ThreadContext& getThreadContext()
{
    if (auto provider = threadContextProvider())
        return provider();
    thread_local ThreadContext context;
    return context;
}

Functionsยง

get_thread_context