Module topology_lock

Module topology_lock 

Source
Expand description

Single-writer gate for WASIX linker topology changes.

While a TopologyToken is held, no other topology-changing operation may begin. The token may be moved to another thread (it is Send).

Use TopologyCoordinator::try_acquire once per cooperative retry loop alongside LinkerStateWriteBackoff, analogous to the cooperative linker-state writers in this module (write_linker_state, write_linker_state_with_topology).

Structsยง

TopologyCoordinator ๐Ÿ”’
Shared coordinator embedded in LinkerShared.
TopologyCoordinatorInner ๐Ÿ”’
TopologyGateState ๐Ÿ”’
TopologyToken ๐Ÿ”’
RAII lease on linker topology serialization.