Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ CreateThread
Function
CreateThread
test/core/pthread/exceptions.cpp:44–48 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
42
pthread_t thread[NUM_THREADS];
43
44
void CreateThread(int i)
45
{
46
int rc = pthread_create(&thread[i], nullptr, ThreadMain, (void*)(intptr_t)i);
47
assert(rc == 0);
48
}
49
50
void loop() {
51
static int main_adds = 0;
Callers
1
main
Function · 0.70
Calls
1
assert
Function · 0.50
Tested by
no test coverage detected