DescriptionAvoid data race on Database::m_opened.
Upon closing, the database thread will transition m_opened
to |false|. Do that atomically so as to avoid a race when
other threads check opened() status.
R=michaeln
BUG=580994
Committed: https://crrev.com/f935fbb21ab195c371509616e2c350c8790a128d
Cr-Commit-Position: refs/heads/master@{#375353}
Patch Set 1 #Patch Set 2 : iwyu #Patch Set 3 : avoid casts #
Messages
Total messages: 12 (6 generated)
|