We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ee1ce7 commit f261347Copy full SHA for f261347
src/client/barrier.cc
@@ -119,7 +119,7 @@ void BarrierContext::commit_barrier(barrier_interval &civ)
119
std::unique_lock locker(lock);
120
121
/* we commit outstanding writes--if none exist, we don't care */
122
- if (outstanding_writes.size() == 0)
+ if (outstanding_writes.empty())
123
return;
124
125
boost::icl::interval_set<uint64_t> cvs;
@@ -174,7 +174,7 @@ void BarrierContext::complete(C_Block_Sync &cbs)
174
/* signal waiters */
175
barrier->cond.notify_all();
176
/* dispose cleared barrier */
177
- if (barrier->write_list.size() == 0) {
+ if (barrier->write_list.empty()) {
178
BarrierList::iterator iter2 =
179
BarrierList::s_iterator_to(*barrier);
180
active_commits.erase(iter2);
0 commit comments