Module atomic_waker

Module atomic_waker 

Source
Expand description

Atomic waker storage using state machine for safe concurrent access

Based on Tokio’s AtomicWaker but simplified for our use cases. Uses UnsafeCell<Option> + atomic state machine to avoid Box allocation while maintaining safe concurrent access.

使用状态机进行安全并发访问的原子 waker 存储

基于 Tokio 的 AtomicWaker 但为我们的用例简化。 使用 UnsafeCell<Option> + 原子状态机避免 Box 分配 同时保持安全的并发访问。

Structs§

AtomicWaker
Atomic waker storage with state machine synchronization