HomePhabricator

[RCU] Add facility to register cleanup actions to be run when other thread…

Description

[RCU] Add facility to register cleanup actions to be run when other thread catch up

Summary: 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.

Test Plan: Added test cases to check cleanups are running as expected.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien, teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2317

Details

Provenance
deadalnixAuthored on Jan 15 2019, 16:00
FabienPushed on Jan 22 2019, 15:45
Reviewer
Restricted Project
Differential Revision
D2317: [RCU] Add facility to register cleanup actions to be run when other thread catch up
Parents
rSTAGINGf3a7d2f8ef59: [tests] Tidy up mininode
Branches
Unknown
Tags
Unknown