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

Function cleanup_handler2

test/pthread/test_pthread_cleanup.c:24–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24static void cleanup_handler2(void *arg) {
25 cleanup_state <<= 3;
26 // Perform non-commutative arithmetic to a global var that encodes the cleanup stack order ops.
27 cleanup_state *= (intptr_t)arg;
28 printf("Called clean-up handler 2 with arg %p (state=%d)\n", arg, cleanup_state);
29}
30
31static void *thread_start1(void *arg) {
32 printf("thread_start1\n");

Callers

nothing calls this directly

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected