Skip to main content

Module release_thread

Module release_thread 

Source
Expand description

Source: Common/src/TimeTrace.cpp:134-140 (hand-ported) C++:

void releaseThread(GlobalContext& context, ThreadContext* threadContext)
{
    std::scoped_lock lock(context.mutex);
    if (auto it = std::find(context.threads.begin(), context.threads.end(), threadContext); it != context.threads.end())
        context.threads.erase(it);
}

Functionsยง

release_thread