Expand description
Container locking utilities for deadlock-free multi-container operations.
This module provides types for safely locking multiple containers in a deterministic order to prevent deadlocks when performing operations that span multiple inventories (e.g., transferring items between containers).
Structsยง
- Container
Id - Unique identifier for a container based on Arc pointer address.
- Container
Lock Guard - A guard that holds locks on multiple containers in a deterministic order.
- Container
Owner ๐ - Container
Ref - A reference to a container that can be locked.
- Locked
Container ๐
Type Aliasesยง
- Container
Changed ๐Callback - Shared
Container - Thread-safe reference to an erased container.