diff options
Diffstat (limited to 'src/lanes.cpp')
-rw-r--r-- | src/lanes.cpp | 2 |
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__ |