摘要: ```c++ #include class SpinLock{ public: SpinLock():flag_(false){} void lock(){ bool except = false; while(!flag_.compare_exchange_weak(expect,true)) { 阅读全文
posted @ 2023-06-20 23:40 simp00 阅读(23) 评论(0) 推荐(0) 编辑