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

Function asyncWaitShouldTimeout

test/atomic/test_wait_async.c:25–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23int numCalled = 0;
24
25void asyncWaitShouldTimeout(int32_t* ptr,
26 uint32_t val,
27 ATOMICS_WAIT_RESULT_T waitResult,
28 void* userData) {
29 emscripten_out("main: asyncWaitShouldTimeout");
30 ++numCalled;
31 assert(numCalled == 1);
32 assert(ptr == &addr);
33 assert(val == 1);
34 assert(userData == (void*)42);
35 assert(waitResult == ATOMICS_WAIT_TIMED_OUT);
36}
37
38void asyncWaitFinishedShouldNotBeCalled(int32_t* ptr,
39 uint32_t val,

Callers

nothing calls this directly

Calls 2

emscripten_outFunction · 0.50
assertFunction · 0.50

Tested by

no test coverage detected