Changeset View
Changeset View
Standalone View
Standalone View
src/test/rcu_tests.cpp
Show First 20 Lines • Show All 125 Lines • ▼ Show 20 Lines | for (int i = 0; i < COUNT; i++) { | ||||
}); | }); | ||||
std::thread tsync( | std::thread tsync( | ||||
[&] { synchronize(childstep, parentstep, cs, cond, syncRev); }); | [&] { synchronize(childstep, parentstep, cs, cond, syncRev); }); | ||||
tlock.join(); | tlock.join(); | ||||
tsync.join(); | tsync.join(); | ||||
} | } | ||||
// Needed to suppress "Test case [...] did not check any assertions" | |||||
BOOST_CHECK(true); | |||||
} | } | ||||
BOOST_AUTO_TEST_CASE(cleanup_test) { | BOOST_AUTO_TEST_CASE(cleanup_test) { | ||||
RCULock::synchronize(); | RCULock::synchronize(); | ||||
BOOST_CHECK(RCUTest::getCleanups().empty()); | BOOST_CHECK(RCUTest::getCleanups().empty()); | ||||
bool isClean1 = false; | bool isClean1 = false; | ||||
RCULock::registerCleanup([&] { isClean1 = true; }); | RCULock::registerCleanup([&] { isClean1 = true; }); | ||||
▲ Show 20 Lines • Show All 248 Lines • Show Last 20 Lines |