MCPcopy Create free account
hub / github.com/MultithreadedJSBook/code-samples /

Class

ch6-ring-buffer/ring-buffer.js:89–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

87const Mutex = require('../ch6-mutex/mutex.js');
88
89class SharedRingBuffer {
90 constructor(shared/*: number | SharedArrayBuffer*/) {
91 this.shared = typeof shared === 'number' ?
92 new SharedArrayBuffer(shared + 16) : shared;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected