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 e5dfe23..c1bee4e 100644
--- a/src/cancel.h
+++ b/src/cancel.h
@@ -46,17 +46,17 @@ typedef enum
46} CancelOp; 46} CancelOp;
47 47
48// crc64/we of string "CANCEL_ERROR" generated at http://www.nitrxgen.net/hashgen/ 48// crc64/we of string "CANCEL_ERROR" generated at http://www.nitrxgen.net/hashgen/
49static DECLARE_CONST_UNIQUE_KEY(CANCEL_ERROR, 0xe97d41626cc97577); // 'cancel_error' sentinel 49static constexpr UniqueKey CANCEL_ERROR{ 0xe97d41626cc97577ull }; // 'cancel_error' sentinel
50 50
51// crc64/we of string "CANCEL_TEST_KEY" generated at http://www.nitrxgen.net/hashgen/ 51// crc64/we of string "CANCEL_TEST_KEY" generated at http://www.nitrxgen.net/hashgen/
52static DECLARE_CONST_UNIQUE_KEY(CANCEL_TEST_KEY, 0xe66f5960c57d133a); // used as registry key 52static constexpr UniqueKey CANCEL_TEST_KEY{ 0xe66f5960c57d133aull }; // used as registry key
53 53
54cancel_result thread_cancel( lua_State* L, Lane* s, CancelOp op_, double secs_, bool force_, double waitkill_timeout_); 54cancel_result thread_cancel( lua_State* L, Lane* s, CancelOp op_, double secs_, bool force_, double waitkill_timeout_);
55 55
56static inline int cancel_error( lua_State* L) 56static inline int cancel_error( lua_State* L)
57{ 57{
58 STACK_GROW( L, 1); 58 STACK_GROW( L, 1);
59 push_unique_key( L, CANCEL_ERROR); // special error value 59 CANCEL_ERROR.push(L); // special error value
60 return lua_error( L); // doesn't return 60 return lua_error( L); // doesn't return
61} 61}
62 62