百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

rust-atomics-and-locks

> 编程语言
开源

来自我的书《Rust 原子和锁》的代码示例、数据结构和链接。

1.6K stars0 点赞1 次浏览
访问官网GitHub

工具介绍

来自我的书《Rust 原子和锁》的代码示例、数据结构和链接。

此仓库包含了Rust 原子和锁中的代码示例、数据结构和链接。第 1 章、第 2 章、第 3 章和第 8 章的示例可以在 examples/ 中找到。第 4 章、第 5 章、第 6 章和第 9 章的数据结构可以在 src/ 中找到。

  • examples/ch1-01-hello.rs
  • examples/ch1-02-hello-join.rs
  • examples/ch1-03-spawn-closure.rs
  • examples/ch1-04-scoped-threads.rs
  • examples/ch1-05-rc.rs
  • examples/ch1-06-cell.rs
  • examples/ch1-07-refcell.rs
  • examples/ch1-08-mutex.rs
  • examples/ch1-09-sleep-before-unlock.rs
  • examples/ch1-10-unlock-before-sleep.rs
  • examples/ch1-11-thread-parking.rs
  • examples/ch1-12-condvar.rs

第 2 章 — 原子

  • examples/ch2-01-stop-flag.rs
  • examples/ch2-02-progress-reporting.rs
  • examples/ch2-03-progress-reporting-unpark.rs
  • examples/ch2-04-lazy-init.rs
  • examples/ch2-05-fetch-add.rs
  • examples/ch2-06-progress-reporting-multiple-threads.rs
  • examples/ch2-07-statistics.rs
  • examples/ch2-08-id-allocation.rs
  • examples/ch2-09-id-allocation-panic.rs
  • examples/ch2-10-id-allocation-subtract-before-panic.rs
  • examples/ch2-11-increment-with-compare-exchange.rs
  • examples/ch2-12-id-allocation-without-overflow.rs
  • [示例/ch2-13-lazy-one-time

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言