aboutsummaryrefslogtreecommitdiff
path: root/src/lane.cpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2025-04-28 17:59:09 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2025-04-28 17:59:09 +0200
commit58b44326ad2aaae710797745b800c61f65725ebb (patch)
treee153423637823403f162023787a11d3c9ddded41 /src/lane.cpp
parenta86327245eea5638b933aec795026699201c19e1 (diff)
downloadlanes-58b44326ad2aaae710797745b800c61f65725ebb.tar.gz
lanes-58b44326ad2aaae710797745b800c61f65725ebb.tar.bz2
lanes-58b44326ad2aaae710797745b800c61f65725ebb.zip
Remove a useless mutex guard on lane setf-destruct
Diffstat (limited to 'src/lane.cpp')
-rw-r--r--src/lane.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/lane.cpp b/src/lane.cpp
index e6ea2e5..26ddebd 100644
--- a/src/lane.cpp
+++ b/src/lane.cpp
@@ -786,10 +786,8 @@ static void lane_main(Lane* const lane_)
786 786
787 // let's try not to crash if the lane didn't terminate gracefully and the Universe met its end 787 // let's try not to crash if the lane didn't terminate gracefully and the Universe met its end
788 if (!lane_->flaggedAfterUniverseGC.load(std::memory_order_relaxed)) { 788 if (!lane_->flaggedAfterUniverseGC.load(std::memory_order_relaxed)) {
789 lane_->U->selfdestructMutex.lock();
790 // done with lua_close(), terminal shutdown sequence may proceed 789 // done with lua_close(), terminal shutdown sequence may proceed
791 lane_->U->selfdestructingCount.fetch_sub(1, std::memory_order_release); 790 lane_->U->selfdestructingCount.fetch_sub(1, std::memory_order_release);
792 lane_->U->selfdestructMutex.unlock();
793 } 791 }
794 792
795 // we destroy ourselves, therefore our thread member too, from inside the thread body 793 // we destroy ourselves, therefore our thread member too, from inside the thread body