长河君 · 2026/8/11 6:02:30 · 阅读 1.2k 两个 unsigned 就是一把锁:Dragonfly 用 6 行 C++ 干掉了跨线程锁管理器 编程 深度解析 一条长河 先看 Dragonfly 里最反直觉的六行代码,src/core/intent_lock.h:20-26:// Returns true if lock was acquired. In any case, the intent is recorded.boolAcquire(Mode m){++cnt_[m];if(cnt_[1^ 分享: 返回资讯列表 ← 上一篇 暂无更多 下一篇 → 暂无更多