aboutsummaryrefslogtreecommitdiff
path: root/src/cancel.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-11-13 10:06:37 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-11-13 10:06:37 +0100
commitf45a3f5de2a11065764c87208d3f0b58e6ebe771 (patch)
tree8b1d5e586e7fee575ed2d09a9cb4e7fe4f2101f2 /src/cancel.cpp
parent43915511f5e0c74a5aa6e0d02fe62505eb133191 (diff)
downloadlanes-f45a3f5de2a11065764c87208d3f0b58e6ebe771.tar.gz
lanes-f45a3f5de2a11065764c87208d3f0b58e6ebe771.tar.bz2
lanes-f45a3f5de2a11065764c87208d3f0b58e6ebe771.zip
Cleaning up guano
Converted volatile Lane::cancelRequest to std::atomic
Diffstat (limited to 'src/cancel.cpp')
-rw-r--r--src/cancel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cancel.cpp b/src/cancel.cpp
index 8991684..9248b25 100644
--- a/src/cancel.cpp
+++ b/src/cancel.cpp
@@ -54,7 +54,7 @@ THE SOFTWARE.
54{ 54{
55 auto const* const _lane{ kLanePointerRegKey.readLightUserDataValue<Lane>(L_) }; 55 auto const* const _lane{ kLanePointerRegKey.readLightUserDataValue<Lane>(L_) };
56 // 'lane' is nullptr for the original main state (and no-one can cancel that) 56 // 'lane' is nullptr for the original main state (and no-one can cancel that)
57 return _lane ? _lane->cancelRequest : CancelRequest::None; 57 return _lane ? _lane->cancelRequest.load(std::memory_order_relaxed) : CancelRequest::None;
58} 58}
59 59
60// ################################################################################################# 60// #################################################################################################