This proposal introduces four (4) logical features:
。
Shared Structs, which are further restricted structs that can be shared and accessed in parallel by multiple agents. They enable shared memory multithreading.
。
Mutex and Condition, which are higher level abstractions for synchronizing access to shared memory.
。
Unsafe Blocks, which are syntactic guardrails to lexically scope where racy accesses to shared structs are allowed.
https://github.com/tc39/proposal-structs