diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-02-18 19:40:31 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-18 19:40:31 +0100 |
| commit | 310496a89f583b49217915b9add165d51aea575e (patch) | |
| tree | dbd3274dc1208ffe6c4a0ec99be0747f5d2d1cb1 /editor/editor_node.h | |
| parent | 7eb4e6415d74e3d4dae6ddd12bb0bdb7acf221c0 (diff) | |
| parent | 8e128726f0eac1982aa75a005554ee5b556b332e (diff) | |
| download | redot-engine-310496a89f583b49217915b9add165d51aea575e.tar.gz | |
Merge pull request #45617 from RandomShaper/modernize_atomics
Modernize atomics (and fix `volatile`)
Diffstat (limited to 'editor/editor_node.h')
| -rw-r--r-- | editor/editor_node.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_node.h b/editor/editor_node.h index 8740488d18..91d873d16f 100644 --- a/editor/editor_node.h +++ b/editor/editor_node.h @@ -31,6 +31,7 @@ #ifndef EDITOR_NODE_H #define EDITOR_NODE_H +#include "core/templates/safe_refcount.h" #include "editor/editor_data.h" #include "editor/editor_export.h" #include "editor/editor_folding.h" @@ -111,7 +112,7 @@ public: Thread execute_output_thread; Mutex execute_output_mutex; int exitcode = 0; - volatile bool done = false; + SafeFlag done; }; private: |
