diff options
| author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-04-29 12:56:49 +0200 |
|---|---|---|
| committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-04-29 12:56:49 +0200 |
| commit | 313b2bbea87101fdd629a2a48b47c75d35b5c501 (patch) | |
| tree | d333e8ad6ac03c4173742faa6c4bd60f5f10e905 /src | |
| parent | d241ff31079ce49b34c5ac68d7d9a54ee5cbd028 (diff) | |
| download | lanes-313b2bbea87101fdd629a2a48b47c75d35b5c501.tar.gz lanes-313b2bbea87101fdd629a2a48b47c75d35b5c501.tar.bz2 lanes-313b2bbea87101fdd629a2a48b47c75d35b5c501.zip | |
Updated comments on unit test lanes.configure.allocator/protected
Diffstat (limited to 'src')
| -rw-r--r-- | src/universe.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/universe.hpp b/src/universe.hpp index 0c5e659..88a53a1 100644 --- a/src/universe.hpp +++ b/src/universe.hpp | |||
| @@ -30,7 +30,7 @@ class ProtectedAllocator final | |||
| 30 | static void* protected_lua_Alloc(void* const ud_, void* const ptr_, size_t const osize_, size_t const nsize_) | 30 | static void* protected_lua_Alloc(void* const ud_, void* const ptr_, size_t const osize_, size_t const nsize_) |
| 31 | { | 31 | { |
| 32 | ProtectedAllocator* const allocator{ static_cast<ProtectedAllocator*>(ud_) }; | 32 | ProtectedAllocator* const allocator{ static_cast<ProtectedAllocator*>(ud_) }; |
| 33 | std::lock_guard<std::mutex> guard{ allocator->mutex }; | 33 | std::lock_guard<std::mutex> _guard{ allocator->mutex }; |
| 34 | return allocator->alloc(ptr_, osize_, nsize_); | 34 | return allocator->alloc(ptr_, osize_, nsize_); |
| 35 | } | 35 | } |
| 36 | 36 | ||
