diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-12-03 17:13:35 +0100 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-12-03 17:13:35 +0100 |
commit | d8580e14fec64dd5bf3dd492a4811b290cbe4aec (patch) | |
tree | 8dcd3117f7427671e34509badd4c08957d8f0914 /src/universe.cpp | |
parent | 307fd830eb168005a3ba3d557343284814757eff (diff) | |
download | lanes-d8580e14fec64dd5bf3dd492a4811b290cbe4aec.tar.gz lanes-d8580e14fec64dd5bf3dd492a4811b290cbe4aec.tar.bz2 lanes-d8580e14fec64dd5bf3dd492a4811b290cbe4aec.zip |
Internal rework of an enum bad practice usage
Diffstat (limited to 'src/universe.cpp')
-rw-r--r-- | src/universe.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/universe.cpp b/src/universe.cpp index eab5977..ec7d043 100644 --- a/src/universe.cpp +++ b/src/universe.cpp | |||
@@ -417,9 +417,9 @@ LUAG_FUNC(universe_gc) | |||
417 | 417 | ||
418 | // attempt to terminate all lanes with increasingly stronger cancel methods | 418 | // attempt to terminate all lanes with increasingly stronger cancel methods |
419 | bool const _allLanesTerminated{ | 419 | bool const _allLanesTerminated{ |
420 | _U->terminateFreeRunningLanes(_shutdown_timeout, CancelOp::Soft) | 420 | _U->terminateFreeRunningLanes(_shutdown_timeout, { CancelRequest::Soft, LuaHookMask::None }) |
421 | || _U->terminateFreeRunningLanes(_shutdown_timeout, CancelOp::Hard) | 421 | || _U->terminateFreeRunningLanes(_shutdown_timeout, { CancelRequest::Hard, LuaHookMask::None }) |
422 | || _U->terminateFreeRunningLanes(_shutdown_timeout, CancelOp::MaskAll) | 422 | || _U->terminateFreeRunningLanes(_shutdown_timeout, { CancelRequest::Hard, LuaHookMask::All }) |
423 | }; | 423 | }; |
424 | 424 | ||
425 | // invoke the function installed by lanes.finally() | 425 | // invoke the function installed by lanes.finally() |