aboutsummaryrefslogtreecommitdiff
path: root/src/lanes.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-11-13 10:00:20 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-11-13 10:00:20 +0100
commit43915511f5e0c74a5aa6e0d02fe62505eb133191 (patch)
treeb4e4e06a85e8d8868c0d551ebce74f9900606020 /src/lanes.cpp
parentd9879337c9843d7bcc936a6fbf0755288ed70607 (diff)
downloadlanes-43915511f5e0c74a5aa6e0d02fe62505eb133191.tar.gz
lanes-43915511f5e0c74a5aa6e0d02fe62505eb133191.tar.bz2
lanes-43915511f5e0c74a5aa6e0d02fe62505eb133191.zip
Cleaning up guano
Converted volatile Lane::status to std::atomic
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r--src/lanes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp
index df57bb4..c65fc1c 100644
--- a/src/lanes.cpp
+++ b/src/lanes.cpp
@@ -312,7 +312,7 @@ LUAG_FUNC(lane_new)
312 { 312 {
313 std::lock_guard _guard{ lane->doneMutex }; 313 std::lock_guard _guard{ lane->doneMutex };
314 // this will cause lane_main to skip actual running (because we are not Pending anymore) 314 // this will cause lane_main to skip actual running (because we are not Pending anymore)
315 lane->status = Lane::Running; 315 lane->status.store(Lane::Running, std::memory_order_release);
316 } 316 }
317 // unblock the thread so that it can terminate gracefully 317 // unblock the thread so that it can terminate gracefully
318#ifndef __PROSPERO__ 318#ifndef __PROSPERO__