X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=cds%2Fintrusive%2Fmsqueue.h;h=0313390559b6f524aa60874e939227b133ab7ea7;hb=6924946ceeaae28bc227fe7c9d8e939963bb9d69;hp=98d8a64e82f6f91574d65bb37d5af06d055956fa;hpb=49c0aa6b50ba412f206f06419adf1bf2213ae373;p=libcds.git diff --git a/cds/intrusive/msqueue.h b/cds/intrusive/msqueue.h index 98d8a64e..03133905 100644 --- a/cds/intrusive/msqueue.h +++ b/cds/intrusive/msqueue.h @@ -584,7 +584,7 @@ namespace cds { namespace intrusive { bool empty() const { typename gc::Guard guard; - node_type * p = guard.protect( m_pHead, []( node_type * p ) -> value_type * { return node_traits::to_value_ptr( p );}); + node_type * p = guard.protect( m_pHead, []( node_type * pNode ) -> value_type * { return node_traits::to_value_ptr( pNode );}); return p->m_pNext.load( memory_model::memory_order_relaxed ) == nullptr; }