Lib/Emscripten/EmscriptenThreads.cpp
static bool validateThreadId(Emscripten::Process* process, emabi::pthread_t threadId)
{
	WAVM_ASSERT_MUTEX_IS_LOCKED_BY_CURRENT_THREAD(process->threadsMutex);

	return threadId != 0 && process->threads.contains(threadId);
}
// Validates that a thread ID is valid. i.e. 0 < threadId < threads.size(), and threads[threadId] !=
// null If the thread ID is invalid, throws an invalid argument exception. The caller must have
// already locked threadsMutex before calling validateThreadId.
Validates that a thread ID is valid.
Validates that a thread ID is valid .
static bool validateThreadId(Emscripten::Process* process, emabi::pthread_t threadId)
{
	WAVM_ASSERT_MUTEX_IS_LOCKED_BY_CURRENT_THREAD(process->threadsMutex);
	return threadId != 0 && process->threads.contains(threadId);
}
static bool validateThreadId ( Emscripten :: Process * process , emabi :: pthread_t threadId ) { WAVM_ASSERT_MUTEX_IS_LOCKED_BY_CURRENT_THREAD ( process -> threadsMutex ) ; return threadId != 0 && process -> threads . contains ( threadId ) ; }
Validates that a thread ID is valid.
Validates that a thread ID is valid .