db/update/Walk: use std::atomic_bool for the "quit" variable
Fixes thread sanitizer warnings.
This commit is contained in:
parent
f8bb66b4e0
commit
4319dedb23
@ -24,6 +24,8 @@
|
|||||||
#include "Editor.hxx"
|
#include "Editor.hxx"
|
||||||
#include "Compiler.h"
|
#include "Compiler.h"
|
||||||
|
|
||||||
|
#include <atomic>
|
||||||
|
|
||||||
struct StorageFileInfo;
|
struct StorageFileInfo;
|
||||||
struct Directory;
|
struct Directory;
|
||||||
struct ArchivePlugin;
|
struct ArchivePlugin;
|
||||||
@ -52,7 +54,7 @@ class UpdateWalk final {
|
|||||||
* cancel as quickly as possible. Access to this flag is
|
* cancel as quickly as possible. Access to this flag is
|
||||||
* unprotected.
|
* unprotected.
|
||||||
*/
|
*/
|
||||||
volatile bool cancel;
|
std::atomic_bool cancel;
|
||||||
|
|
||||||
Storage &storage;
|
Storage &storage;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user