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

Method buffer_unavailable

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

Determines if this process needs to wait for ownership of the buffer. We invert the condition on one of the processes to indicate that if one process owns the buffer then the other does not.

Source from the content-addressed store, hash-verified

160 /// invert the condition on one of the processes to indicate that if one
161 /// process owns the buffer then the other does not.
162 RPC_ATTRS static bool buffer_unavailable(uint32_t in, uint32_t out) {
163 bool cond = in != out;
164 return Invert ? !cond : cond;
165 }
166
167 /// Attempt to claim the lock at index. Return true on lock taken.
168 /// lane_mask is a bitmap of the threads in the warp that would hold the

Callers 2

openMethod · 0.80
try_openMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected