aboutsummaryrefslogtreecommitdiff
path: root/src/cancel.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-06-11 17:24:30 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-06-11 17:24:30 +0200
commit740b820e429cf7c856f2f305b6fc5b6fd969f3b3 (patch)
treece885dc8200ad8c7a1f6b3506db9ceedc3cc9df7 /src/cancel.h
parent5f5b287b4548cb21fde9ae451392d82e64cc5de7 (diff)
downloadlanes-740b820e429cf7c856f2f305b6fc5b6fd969f3b3.tar.gz
lanes-740b820e429cf7c856f2f305b6fc5b6fd969f3b3.tar.bz2
lanes-740b820e429cf7c856f2f305b6fc5b6fd969f3b3.zip
Move some cancel-related code around
Diffstat (limited to 'src/cancel.h')
-rw-r--r--src/cancel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cancel.h b/src/cancel.h
index 3304e0d..0e4e6d4 100644
--- a/src/cancel.h
+++ b/src/cancel.h
@@ -38,8 +38,8 @@ enum class CancelOp
38// xxh64 of string "kCancelError" generated at https://www.pelock.com/products/hash-calculator 38// xxh64 of string "kCancelError" generated at https://www.pelock.com/products/hash-calculator
39static constexpr UniqueKey kCancelError{ 0x0630345FEF912746ull, "lanes.cancel_error" }; // 'raise_cancel_error' sentinel 39static constexpr UniqueKey kCancelError{ 0x0630345FEF912746ull, "lanes.cancel_error" }; // 'raise_cancel_error' sentinel
40 40
41[[nodiscard]] CancelOp which_cancel_op(std::string_view const& opString_); 41[[nodiscard]] CancelRequest cancel_test(lua_State* L_);
42[[nodiscard]] CancelResult thread_cancel(Lane* lane_, CancelOp op_, int hookCount_, std::chrono::time_point<std::chrono::steady_clock> until_, bool wakeLane_); 42[[nodiscard]] CancelOp WhichCancelOp(std::string_view const& opString_);
43 43
44[[noreturn]] static inline void raise_cancel_error(lua_State* L_) 44[[noreturn]] static inline void raise_cancel_error(lua_State* L_)
45{ 45{