MCPcopy Create free account
hub / github.com/WAVM/WAVM / validateThreadId

Function validateThreadId

Lib/ThreadTest/ThreadTest.cpp:81–87  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

removeThreadByIdFunction · 0.85

Calls 1

containsMethod · 0.45

Tested by

no test coverage detected