Lines Matching refs:v_
134 ConcurrentGuard(ConcurrentGuardValues& v, std::string operation = ""): operation_(operation), v_(v)
136 v_.AddLogWithDebugLog("[ConcurrentGuard] " + operation_ + " start");
137 auto tid = v_.Gettid();
140 if (!v_.count.compare_exchange_strong(except, 1) && v_.last_tid != tid) {
141 v_.PrintLog();
143 << ", current tid: " << tid << ", last tid: " << v_.last_tid;
145 v_.last_tid = tid;
149 auto tid = v_.Gettid();
152 if (!v_.count.compare_exchange_strong(except, 0) && v_.last_tid != tid) {
153 v_.PrintLog();
155 << ", current tid: " << tid << ", last tid: " << v_.last_tid;
157 v_.AddLogWithDebugLog("[ConcurrentGuard] " + operation_ + " end");
161 ConcurrentGuardValues& v_;