HomePhabricator

Fix invalid use a memory order relaxed

Description

Fix invalid use a memory order relaxed

Summary: It is self evident that these operation need to have a global order, or two thread may end up allocating the same id. Thankfully, the x86 memory model ensures that it won't happen, but I wouldn't bet as much on various flavour of ARM or other RISC CPUs.

Test Plan: Read carefully, I guess...

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
deadalnixAuthored on Apr 2 2020, 23:04
deadalnixPushed on Apr 3 2020, 16:03
Reviewer
Restricted Project
Differential Revision
D5662: Fix invalid use a memory order relaxed
Parents
rSTAGING3bf909b08ebc: Only pass --disable-dependency-tracking to packages that understand it
Branches
Unknown
Tags
Unknown
References
tag: phabricator/base/17444