Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/emscripten-core/emscripten
/ CreateThread
Function
CreateThread
test/pthread/test_pthread_preallocates_workers.c:30–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
28
}
29
30
void CreateThread(intptr_t idx) {
31
emscripten_outf(
"Main: Spawning thread %ld..."
, idx);
32
int rc = pthread_create(&threads[idx], NULL, thread_start, (void*)idx);
33
assert(rc == 0);
34
}
35
36
int main()
37
{
Callers
1
main
Function · 0.70
Calls
2
emscripten_outf
Function · 0.70
assert
Function · 0.50
Tested by
no test coverage detected