In order to avoid the need for synchronization every time a cleanup action is required, it is preferable to register the cleanups and run the cleanup all at once when synchronization is requested.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Project - Commits
- rSTAGING7f396108c438: [RCU] Add facility to register cleanup actions to be run when other thread…
rABC7f396108c438: [RCU] Add facility to register cleanup actions to be run when other thread…
Added test cases to check cleanups are running as expected.
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- rcucleanup
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 4532 Build 7127: Bitcoin ABC Buildbot (legacy) Build 7126: arc lint + arc unit
Event Timeline
Comment Actions
- Make sure hasSyncedTo return a reasonable upper bound.
- Simplify the synchronized loop.
Comment Actions
One nit in comment, looks good otherwise
src/rcu.cpp | ||
---|---|---|
208 ↗ | (On Diff #6675) | fromthe => from the |