diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-02 10:03:01 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-04-02 10:03:01 +0200 |
commit | 21d4f6679725eb19f800b134d7207cd0257302d0 (patch) | |
tree | 4f36325f12566d7b59a1c09ddee20dc6d2694768 /src/universe.h | |
parent | 011898fab90103ff638c5e6608956b9817e7da13 (diff) | |
download | lanes-21d4f6679725eb19f800b134d7207cd0257302d0.tar.gz lanes-21d4f6679725eb19f800b134d7207cd0257302d0.tar.bz2 lanes-21d4f6679725eb19f800b134d7207cd0257302d0.zip |
C++ migration: more atomics
Diffstat (limited to '')
-rw-r--r-- | src/universe.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/universe.h b/src/universe.h index 6a65888..38885cb 100644 --- a/src/universe.h +++ b/src/universe.h | |||
@@ -158,13 +158,13 @@ struct Universe | |||
158 | std::atomic<lua_Integer> next_mt_id{ 1 }; | 158 | std::atomic<lua_Integer> next_mt_id{ 1 }; |
159 | 159 | ||
160 | #if USE_DEBUG_SPEW() | 160 | #if USE_DEBUG_SPEW() |
161 | int debugspew_indent_depth{ 0 }; | 161 | std::atomic<int> debugspew_indent_depth{ 0 }; |
162 | #endif // USE_DEBUG_SPEW() | 162 | #endif // USE_DEBUG_SPEW() |
163 | 163 | ||
164 | Lane* volatile selfdestruct_first{ nullptr }; | 164 | Lane* volatile selfdestruct_first{ nullptr }; |
165 | // After a lane has removed itself from the chain, it still performs some processing. | 165 | // After a lane has removed itself from the chain, it still performs some processing. |
166 | // The terminal desinit sequence should wait for all such processing to terminate before force-killing threads | 166 | // The terminal desinit sequence should wait for all such processing to terminate before force-killing threads |
167 | int volatile selfdestructing_count{ 0 }; | 167 | std::atomic<int> selfdestructing_count{ 0 }; |
168 | }; | 168 | }; |
169 | 169 | ||
170 | // ################################################################################################ | 170 | // ################################################################################################ |