aboutsummaryrefslogtreecommitdiff
path: root/src/cancel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cancel.h')
-rw-r--r--src/cancel.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cancel.h b/src/cancel.h
index a25c078..d5c3f7b 100644
--- a/src/cancel.h
+++ b/src/cancel.h
@@ -44,8 +44,8 @@ enum class CancelOp
44 MaskCount = LUA_MASKCOUNT, 44 MaskCount = LUA_MASKCOUNT,
45}; 45};
46 46
47// crc64/we of string "CANCEL_ERROR" generated at http://www.nitrxgen.net/hashgen/ 47// xxh64 of string "kCancelError" generated at https://www.pelock.com/products/hash-calculator
48static constexpr UniqueKey CANCEL_ERROR{ 0xE97D41626CC97577ull, "lanes.cancel_error" }; // 'raise_cancel_error' sentinel 48static constexpr UniqueKey kCancelError{ 0x0630345FEF912746ull, "lanes.cancel_error" }; // 'raise_cancel_error' sentinel
49 49
50[[nodiscard]] CancelOp which_cancel_op(char const* op_string_); 50[[nodiscard]] CancelOp which_cancel_op(char const* op_string_);
51[[nodiscard]] CancelResult thread_cancel(Lane* lane_, CancelOp op_, int hook_count_, lua_Duration secs_, bool wake_lindas_); 51[[nodiscard]] CancelResult thread_cancel(Lane* lane_, CancelOp op_, int hook_count_, lua_Duration secs_, bool wake_lindas_);
@@ -53,7 +53,7 @@ static constexpr UniqueKey CANCEL_ERROR{ 0xE97D41626CC97577ull, "lanes.cancel_er
53[[noreturn]] static inline void raise_cancel_error(lua_State* L) 53[[noreturn]] static inline void raise_cancel_error(lua_State* L)
54{ 54{
55 STACK_GROW(L, 1); 55 STACK_GROW(L, 1);
56 CANCEL_ERROR.pushKey(L); // special error value 56 kCancelError.pushKey(L); // special error value
57 raise_lua_error(L); // doesn't return 57 raise_lua_error(L); // doesn't return
58} 58}
59 59