随笔分类 - wired tiger代码阅读
摘要:代码: wiredtiger-2.8.0/src/os_posix/os_mtx_rw.c rw锁结构 要加锁, 先领号. 即 (读lock.users, lock.users++), 原子操作. 当领的号 与 当前 服务的 lock.writers 同, 则申请 w锁成功; 与当前 服务的 loc
阅读全文
摘要:http://www.drdobbs.com/lock-free-data-structures-with-hazard-po/184401890 memory deallocation lock-free session.h support/hazard.c __wt_hazard_set() /
阅读全文

浙公网安备 33010602011771号