文件名称:futures-intrusive:基于介入式集合的Future和asyncawait的同步原语
文件大小:106KB
文件格式:ZIP
更新时间:2024-05-24 14:38:51
rust synchronization async multithreading async-await
期货介入式 此板条箱基于侵入式集合的概念,提供了各种基于Futures和async/await兼容类型: 多种口味的渠道: 单发 多生产者多消费者(MPMC) 国家广播 同步基元: 手动重置事件 互斥体 信号 计时器 有关详细信息,请参阅。 除了文档之外,这些示例还提供了有关如何使用原语的快速概述。 用法 将此添加到您的Cargo.toml : [ dependencies ] futures-intrusive = " ^0.4 " 为了在no-std环境中使用板条箱,需要在不使用默认功能的情况下对其进行编译: [ dependencies ] futures-intrusive = { version = " ^0.4 " , default-features = false } 装箱定义了一个功能alloc ,可以使用它来重新启用alloc功能。 还定义了std ,
【文件预览】:
futures-intrusive-master
----.gitignore(64B)
----LICENSE-MIT(1KB)
----.rustfmt.toml(15B)
----Cargo.toml(1KB)
----tests()
--------state_broadcast_channel.rs(18KB)
--------mutex.rs(18KB)
--------semaphore.rs(24KB)
--------manual_reset_event.rs(7KB)
--------mpmc_channel.rs(54KB)
--------oneshot_channel.rs(12KB)
--------timer.rs(10KB)
----examples()
--------cancellation.rs(14KB)
--------philosophers.rs(6KB)
--------readme.md(167B)
----LICENSE-APACHE(11KB)
----src()
--------timer()
--------intrusive_pairing_heap.rs(14KB)
--------utils()
--------intrusive_double_linked_list.rs(24KB)
--------lib.rs(9KB)
--------noop_lock.rs(580B)
--------sync()
--------channel()
--------buffer()
----benches()
--------utils()
--------mutex.rs(7KB)
--------semaphore.rs(6KB)
--------bench_mutex.sh(195B)
--------mpmc_channel.rs(10KB)
----readme.md(1KB)
----.travis.yml(442B)