aboutsummaryrefslogtreecommitdiff
path: root/src/allocator.hpp
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/allocator.hpp
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/allocator.hpp')
-rw-r--r--src/allocator.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/allocator.hpp b/src/allocator.hpp
index c073391..ce65a4b 100644
--- a/src/allocator.hpp
+++ b/src/allocator.hpp
@@ -33,6 +33,8 @@ namespace lanes {
33 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception 33 // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception
34 static void operator delete([[maybe_unused]] void* const p_, [[maybe_unused]] lua_State* const L_) {} 34 static void operator delete([[maybe_unused]] void* const p_, [[maybe_unused]] lua_State* const L_) {}
35 35
36 ~AllocatorDefinition() = default;
37
36 AllocatorDefinition(lua_Alloc const allocF_, void* const allocUD_) noexcept 38 AllocatorDefinition(lua_Alloc const allocF_, void* const allocUD_) noexcept
37 : allocF{ allocF_ } 39 : allocF{ allocF_ }
38 , allocUD{ allocUD_ } 40 , allocUD{ allocUD_ }