HomePhabricator

Make fStartedNewLine an std::atomic_bool

Description

Make fStartedNewLine an std::atomic_bool

While this doesnt really fix the race of adding timestamps
mid-logical-line, it avoids the undefined behavior of using a
bool in multiple threads.

Details

Provenance
Matt Corallo <git@bluematt.me>Authored on Nov 27 2016, 23:14
deadalnixPushed on May 14 2017, 22:04
Parents
rABC507145d78595: Fix race when accessing std::locale::classic()
Branches
Unknown
Tags
Unknown

Event Timeline

Matt Corallo <git@bluematt.me> committed rABC8b22efb6f7c4: Make fStartedNewLine an std::atomic_bool (authored by Matt Corallo <git@bluematt.me>).Nov 27 2016, 23:36