HomePhabricator

Use template function instead of void* parameter

Description

Use template function instead of void* parameter

Summary:
This change gets rid of -Wthread-safety-attributes warning spam.

This is part [3/5] of Core PR18635 : https://github.com/bitcoin/bitcoin/pull/18635/commits/971a468ccf0474ca00fa7d20278569b8fb11f0fb

Depends on D7878

Test Plan:

ninja all check

Checks that clang thread safety analysis is happy.

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>Authored on May 28 2020, 06:55
deadalnixCommitted on Oct 11 2020, 13:25
deadalnixPushed on Oct 11 2020, 13:25
Reviewer
Restricted Project
Differential Revision
D7879: Use template function instead of void* parameter
Parents
rABC08508a1417d9: refactor: Rename LockGuard to StdLockGuard for consistency with StdMutex
Branches
Unknown
Tags
Unknown