Lib/Emscripten/EmscriptenThreads.cpp
static U32 allocateThreadId(Emscripten::Process* process, Thread* thread)
{
	Platform::Mutex::Lock threadsLock(process->threadsMutex);
	thread->id = process->threads.add(0, thread);
	WAVM_ERROR_UNLESS(thread->id != 0);
	return thread->id;
}
// Adds the thread to the global thread array, assigning it an ID corresponding to its index in the
// array.
Adds the thread to the global thread array, assigning it an ID corresponding to its index in the
array.
Adds the thread to the global thread array assigning it an ID corresponding to its index in the array .
static U32 allocateThreadId(Emscripten::Process* process, Thread* thread)
{
	Platform::Mutex::Lock threadsLock(process->threadsMutex);
	thread->id = process->threads.add(0, thread);
	WAVM_ERROR_UNLESS(thread->id != 0);
	return thread->id;
}
static U32 allocateThreadId ( Emscripten :: Process * process , Thread * thread ) { Platform :: Mutex :: Lock threadsLock ( process -> threadsMutex ) ; thread -> id = process -> threads . add ( 0 , thread ) ; WAVM_ERROR_UNLESS ( thread -> id != 0 ) ; return thread -> id ; }
Adds the thread to the global thread array, assigning it an ID corresponding to its index in the
array.
Adds the thread to the global thread array assigning it an ID corresponding to its index in the array .