220721
Warning
This post is more than a year old. Information may be outdated.
Work Research
See 2022-07-19.
- (Unconfirmed)
- Inside Web Worker Thread
MutationTransfer.ts, create atransferSynclayer. - Add a key
TransferrableKeys.sync. - Whenever we need a synchronous operation,
- Allocate a SharedArrayBuffer inside
transferSync. - Run
Atomic.wait()at the main thread. - Run the calculation at the corresponding processor on the main thread.
- Pass the data into the received SharedArrayBuffer.
- Unfreeze the Web Worker thread with
Atomic.notify().
- Allocate a SharedArrayBuffer inside
Progress
Wait... TransferrableKeys.sync already exists. Why?

Backlinks0
No backlinks found.
Comments
