Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ CreateThread
Function
CreateThread
test/pthread/test_large_pthread_allocation.c:22–25 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
20
}
21
22
void CreateThread(intptr_t idx) {
23
int rc = pthread_create(&threads[idx], NULL, thread_start, (void*)idx);
24
assert(rc == 0);
25
}
26
27
void JoinThread(int idx) {
28
int rc = pthread_join(threads[idx], NULL);
Callers
1
main
Function · 0.70
Calls
1
assert
Function · 0.50
Tested by
no test coverage detected