tc39 / proposal-atomics-wait-async

"asynchronous atomic wait" for ECMAScript
https://tc39.github.io/proposal-atomics-wait-async/
Other
89 stars 18 forks source link

Fix WaiterLists. #14

Closed syg closed 5 years ago

syg commented 5 years ago

The current formulation of a cluster-wide per-(block, i) ClusterWaiterList and a per-agent AsyncWaiterList does not work. Fundamentally, both waiter lists need to be per-(block, i).

This patch re-flattens into a single cluster-wide per-(block, i) WaiterList. The FIFO fairness logic is now embedded inside AddWaiter.

Intended to fix #13