Expand description
Source: Common/src/TimeTrace.cpp:125-132 (hand-ported)
C++:
uint32_t createThread(GlobalContext& context, ThreadContext* threadContext)
{
std::scoped_lock lock(context.mutex);
context.threads.push_back(threadContext);
return ++context.nextThreadId;
}