Rust中同时编程的工具
横梁 这个箱子提供了一套同时编程的工具:
原子
数据结构
[`deque'],用于建造任务排程器的工作 -- -- 偷盗。
['ArrayQueue'],在构造上分配固定容量缓冲的MPMC队列.(alloc)
['SegQueue'],一个没有限制的MPMC队列,根据需要分配出小缓冲,分块.(alloc)
内存管理
[`划时代'],一个划时代的垃圾收集器。(alloc)
QQ 线程同步
水电费
[`Backoff'],用于自旋回旋回转中的指数回转。(no std)
[“缓存添加”],用于将一个值与缓存行长度相匹配。(no std)
[`范围'],用于从堆栈中取出局部变量的产卵线.
标记为 " sup " (no std) 的形状可用于 " no std " 环境。
标记为 " sup " (alloc) </sup " 的特性可在 " no std " 环境中使用,但只有在 " alloc " 时使用。 特性已启用。 *
[AtomicCell'):https://docs.rs/crossbeam/latest/crossbeam/atomic/struct.AtomicCell.html [大气层 ' :https://docs.rs/crossbeam/latest/crossbeam/atomic/trait.AtomicConsume.html
[deque']:https://docs.rs/crossbeam/latest/crossbeam/deque/index.html [武器库 ' :https://docs.rs/crossbeam/latest/crossbeam/queue/struct.ArrayQueue.html
[队列'):https://docs.rs/crossbeam/latest/crossbeam/queue/struct.SegQueue.html [渠道']:https://docs.rs/crossbeam/latest/crossbeam/channel/index.html
[帕克 ' :https://docs.rs/crossbeam/latest/crossbeam/sync/struct.Parker.html] [硬锁 ' :https://docs.rs/crossbeam/latest/crossbeam/sync/struct.ShardedLock.html
[ " 等待小组 " :https://docs.rs/crossbeam/latest/crossbeam/sync/struct.WaitGroup.htm
发布版本 1.0
ci: 通过修复不稳定的测试重新启用 armv5te
用于跳表的 &mut self API
crossbeam-channel 使用纯用户空间的自旋锁,在某些情况下性能非常差
关于 `T: Send` 不需要用于 `Guard::defer_destroy` 的文档示例不适用于该函数
高效的 `SkipList::range().count()`
在 SegQueue 上实现 Drain 是否有意义
文档表明 SegQueue 并非完全无锁
无法设置 deque 的最大容量大小
为 crossbeam-deque 提供示例