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

Method close

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

Source from the content-addressed store, hash-verified

323 RPC_ATTRS uint32_t get_index() const { return index; }
324
325 RPC_ATTRS void close() {
326 // Wait for all lanes to finish using the port.
327 rpc::sync_lane(lane_mask);
328
329 // The server is passive, if it own the buffer when it closes we need to
330 // give ownership back to the client.
331 if (owns_buffer && T)
332 out = process.invert_outbox(index, out);
333 process.unlock(lane_mask, index);
334 }
335
336private:
337 Process<T> &process;

Callers

nothing calls this directly

Calls 3

invert_outboxMethod · 0.80
sync_laneFunction · 0.70
unlockMethod · 0.45

Tested by

no test coverage detected