diff options
Diffstat (limited to 'src/lane.hpp')
-rw-r--r-- | src/lane.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lane.hpp b/src/lane.hpp index 9b678d6..5fe36b6 100644 --- a/src/lane.hpp +++ b/src/lane.hpp | |||
@@ -139,6 +139,10 @@ class Lane final | |||
139 | 139 | ||
140 | ErrorTraceLevel const errorTraceLevel{ Basic }; | 140 | ErrorTraceLevel const errorTraceLevel{ Basic }; |
141 | 141 | ||
142 | // when Universe is collected, and an uncooperative Lane refuses to terminate, this flag becomes true | ||
143 | // in case of crash, that's the Lane's fault! | ||
144 | std::atomic_bool flaggedAfterUniverseGC{ false }; | ||
145 | |||
142 | [[nodiscard]] | 146 | [[nodiscard]] |
143 | static void* operator new(size_t size_, Universe* U_) noexcept { return U_->internalAllocator.alloc(size_); } | 147 | static void* operator new(size_t size_, Universe* U_) noexcept { return U_->internalAllocator.alloc(size_); } |
144 | // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception | 148 | // can't actually delete the operator because the compiler generates stack unwinding code that could call it in case of exception |