diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-17 12:34:08 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2025-03-17 12:34:08 +0100 |
commit | a57690123ae3ce5bdd7e970690f1380e88e4eaf6 (patch) | |
tree | d526e8f545cef2b1c23978cb9ee5c94dbc9cda2c /src/universe.hpp | |
parent | d93de7ca51edea911eeecb7c8edcffe77298ed07 (diff) | |
download | lanes-a57690123ae3ce5bdd7e970690f1380e88e4eaf6.tar.gz lanes-a57690123ae3ce5bdd7e970690f1380e88e4eaf6.tar.bz2 lanes-a57690123ae3ce5bdd7e970690f1380e88e4eaf6.zip |
Raise a regular Lua error instead of throwing a C++ std::logic_error exception in Universe::UniverseGC
Diffstat (limited to 'src/universe.hpp')
-rw-r--r-- | src/universe.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/universe.hpp b/src/universe.hpp index ab06907..2a3085d 100644 --- a/src/universe.hpp +++ b/src/universe.hpp | |||
@@ -106,7 +106,7 @@ class Universe final | |||
106 | LaneTracker tracker; | 106 | LaneTracker tracker; |
107 | 107 | ||
108 | // Protects modifying the selfdestruct chain | 108 | // Protects modifying the selfdestruct chain |
109 | std::mutex selfdestructMutex; | 109 | mutable std::mutex selfdestructMutex; |
110 | 110 | ||
111 | // require() serialization | 111 | // require() serialization |
112 | std::recursive_mutex requireMutex; | 112 | std::recursive_mutex requireMutex; |
@@ -126,6 +126,7 @@ class Universe final | |||
126 | 126 | ||
127 | private: | 127 | private: |
128 | static int UniverseGC(lua_State* L_); | 128 | static int UniverseGC(lua_State* L_); |
129 | void flagDanglingLanes() const; | ||
129 | 130 | ||
130 | public: | 131 | public: |
131 | [[nodiscard]] | 132 | [[nodiscard]] |