Web Locks API 🔒
-
Updated
Mar 20, 2024 - JavaScript
Web Locks API 🔒
Source code for the book "WebAssembly in Action" (https://www.manning.com/books/webassembly-in-action)
Vanilla JS Implementation of SharedMap, a synchronous multi-threading capable, fine-grain-locked with deadlock recovery, static memory allocated, coalesced-chaining HashMap, backed by SharedArrayBuffer
A trasparent rpc for allowing web worker to access dom in mainland(and vise versa)
use sharedArrayBuffer to store data
Is this value a JS SharedArrayBuffer? This module works cross-realm/iframe, does not depend on `instanceof` or mutable properties, and despite ES6 Symbol.toStringTag.
Buffer backed JavaScript class instances. For fast communication between web workers when latency matters.
Add a description, image, and links to the sharedarraybuffer topic page so that developers can more easily learn about it.
To associate your repository with the sharedarraybuffer topic, visit your repo's landing page and select "manage topics."