File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ std::ostream& operator<<(std::ostream& os, const aio_t& aio);
8888
8989typedef boost::intrusive::list<
9090 aio_t ,
91+ boost::intrusive::constant_time_size<false >,
9192 boost::intrusive::member_hook<
9293 aio_t ,
9394 boost::intrusive::list_member_hook<>,
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ void BarrierContext::commit_barrier(barrier_interval &civ)
119119 std::unique_lock locker (lock);
120120
121121 /* we commit outstanding writes--if none exist, we don't care */
122- if (outstanding_writes.size () == 0 )
122+ if (outstanding_writes.empty () )
123123 return ;
124124
125125 boost::icl::interval_set<uint64_t > cvs;
@@ -174,7 +174,7 @@ void BarrierContext::complete(C_Block_Sync &cbs)
174174 /* signal waiters */
175175 barrier->cond .notify_all ();
176176 /* dispose cleared barrier */
177- if (barrier->write_list .size () == 0 ) {
177+ if (barrier->write_list .empty () ) {
178178 BarrierList::iterator iter2 =
179179 BarrierList::s_iterator_to (*barrier);
180180 active_commits.erase (iter2);
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ class BarrierContext;
4545class C_Block_Sync ;
4646
4747typedef boost::intrusive::list< C_Block_Sync,
48+ boost::intrusive::constant_time_size<false >,
4849 boost::intrusive::member_hook<
4950 C_Block_Sync,
5051 boost::intrusive::list_member_hook<>,
@@ -68,6 +69,7 @@ class Barrier
6869};
6970
7071typedef boost::intrusive::list< Barrier,
72+ boost::intrusive::constant_time_size<false >,
7173 boost::intrusive::member_hook<
7274 Barrier,
7375 boost::intrusive::list_member_hook<>,
You can’t perform that action at this time.
0 commit comments