aboutsummaryrefslogtreecommitdiff
path: root/src/universe.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/universe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/universe.cpp b/src/universe.cpp
index 1aafbff..357aa08 100644
--- a/src/universe.cpp
+++ b/src/universe.cpp
@@ -381,7 +381,7 @@ bool Universe::terminateFreeRunningLanes(lua_Duration const shutdownTimeout_, Ca
381 std::lock_guard<std::mutex> _guard{ selfdestructMutex }; 381 std::lock_guard<std::mutex> _guard{ selfdestructMutex };
382 Lane* _lane{ selfdestructFirst }; 382 Lane* _lane{ selfdestructFirst };
383 while (_lane != SELFDESTRUCT_END) { 383 while (_lane != SELFDESTRUCT_END) {
384 if (_lane->cancelRequest != CancelRequest::None) 384 if (_lane->cancelRequest.load(std::memory_order_relaxed) != CancelRequest::None)
385 ++_n; 385 ++_n;
386 _lane = _lane->selfdestruct_next; 386 _lane = _lane->selfdestruct_next;
387 } 387 }