db/update/Walk: use std::atomic_bool for the "quit" variable

Fixes thread sanitizer warnings.
This commit is contained in:
Max Kellermann 2017-12-22 12:02:44 +01:00
parent f8bb66b4e0
commit 4319dedb23

View File

@ -24,6 +24,8 @@
#include "Editor.hxx"
#include "Compiler.h"
#include <atomic>
struct StorageFileInfo;
struct Directory;
struct ArchivePlugin;
@ -52,7 +54,7 @@ class UpdateWalk final {
* cancel as quickly as possible. Access to this flag is
* unprotected.
*/
volatile bool cancel;
std::atomic_bool cancel;
Storage &storage;