HomePhabricator

scheduler: switch from boost to std

Description

scheduler: switch from boost to std

Summary:
Changes from boost::chrono to std::chrono, boost::condition_var to
std::condition_var, boost::mutex to sync.h Mutex, and reverselock.h to
sync.h REVERSE_LOCK. Also adds threadsafety annotations to CScheduler
members.

This is a partial backport of Core PR18234 : https://github.com/bitcoin/bitcoin/pull/18234/commits/d0ebd93270758ea97ea956b8821e17a2d001ea94

Depends on D6532

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Anthony Towns <aj@erisian.com.au>Authored on Feb 28 2020, 02:04
deadalnixCommitted on Jun 11 2020, 13:12
deadalnixPushed on Jun 11 2020, 13:12
Reviewer
Restricted Project
Differential Revision
D6533: scheduler: switch from boost to std
Parents
rABCfba3cd616798: sync.h: add REVERSE_LOCK
Branches
Unknown
Tags
Unknown