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

Method load_outbox

system/lib/llvm-libc/shared/rpc.h:123–127  ·  view source on GitHub ↗

Retrieve the outbox state from memory shared between processes.

Source from the content-addressed store, hash-verified

121
122 /// Retrieve the outbox state from memory shared between processes.
123 RPC_ATTRS uint32_t load_outbox(uint64_t lane_mask, uint32_t index) const {
124 return rpc::broadcast_value(
125 lane_mask, __scoped_atomic_load_n(&outbox[index], __ATOMIC_RELAXED,
126 __MEMORY_SCOPE_SYSTEM));
127 }
128
129 /// Signal to the other process that this one is finished with the buffer.
130 /// Equivalent to loading outbox followed by store of the inverted value

Callers 2

openMethod · 0.80
try_openMethod · 0.80

Calls 1

broadcast_valueFunction · 0.70

Tested by

no test coverage detected