MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / ThreadMain

Function ThreadMain

test/pthread/test_pthread_mutex.c:37–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35}
36
37void *ThreadMain(void *arg) {
38 pthread_mutex_lock(&lock);
39 int c = counter;
40 sleepms(100); // Create contention on the lock.
41 ++c;
42 counter = c;
43 pthread_mutex_unlock(&lock);
44 pthread_exit(0);
45}
46
47void CreateThread(int i, int n) {
48 pthread_attr_t attr;

Callers

nothing calls this directly

Calls 1

sleepmsFunction · 0.70

Tested by

no test coverage detected