CPPUNIT_ASSERT( !ep.empty() );
CPPUNIT_CHECK( ep->nKey == nKey );
CPPUNIT_CHECK( ep->nVal == nKey * 2 );
+ ep.release();
{
rcu_lock l;
CPPUNIT_ASSERT( !ep.empty() );
CPPUNIT_CHECK( ep->nKey == nKey );
CPPUNIT_CHECK( ep->nVal == nKey );
+ ep.release();
{
rcu_lock l;
CPPUNIT_CHECK( ep->nKey == i );
CPPUNIT_CHECK( ep->nVal == i );
CPPUNIT_CHECK( !s.find(i) );
+ ep.release();
}
CPPUNIT_CHECK( s.empty());
CPPUNIT_CHECK( ep->nKey == i );
CPPUNIT_CHECK( ep->nVal == i );
CPPUNIT_CHECK( !s.find(i) );
+ ep.release();
}
CPPUNIT_CHECK( s.empty());
ep = s.extract_min();