Page MenuHomePhabricator

[RCU] Run a lazy round of cleanup when unlocking the RCULock
ClosedPublic

Authored by deadalnix on May 13 2022, 12:00.

Details

Summary

This ensures that we will run the cleanup little by little without a blocking operation such as synchronize.

Test Plan

Added test cases.

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien added inline comments.
src/rcu.cpp
230 ↗(On Diff #33503)

Why is that change needed ?

src/rcu.cpp
230 ↗(On Diff #33503)

So that the cleanup doesn't appears as if it was still in the map while running.

This revision is now accepted and ready to land.May 13 2022, 13:40
deadalnix retitled this revision from [radix] Run a lazy round of cleanup when unlocking the RCULock to [RCU] Run a lazy round of cleanup when unlocking the RCULock.May 13 2022, 14:06