diff options
Diffstat (limited to 'src/cancel.h')
-rw-r--r-- | src/cancel.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cancel.h b/src/cancel.h index c1bee4e..be4d781 100644 --- a/src/cancel.h +++ b/src/cancel.h | |||
@@ -15,7 +15,7 @@ extern "C" { | |||
15 | 15 | ||
16 | // ################################################################################################ | 16 | // ################################################################################################ |
17 | 17 | ||
18 | typedef struct s_Lane Lane; // forward | 18 | struct Lane; // forward |
19 | 19 | ||
20 | /* | 20 | /* |
21 | * Lane cancellation request modes | 21 | * Lane cancellation request modes |
@@ -27,14 +27,14 @@ enum e_cancel_request | |||
27 | CANCEL_HARD // user wants the lane to be interrupted (meaning code won't return from those functions) from inside linda:send/receive calls | 27 | CANCEL_HARD // user wants the lane to be interrupted (meaning code won't return from those functions) from inside linda:send/receive calls |
28 | }; | 28 | }; |
29 | 29 | ||
30 | typedef enum | 30 | enum cancel_result |
31 | { | 31 | { |
32 | CR_Timeout, | 32 | CR_Timeout, |
33 | CR_Cancelled, | 33 | CR_Cancelled, |
34 | CR_Killed | 34 | CR_Killed |
35 | } cancel_result; | 35 | }; |
36 | 36 | ||
37 | typedef enum | 37 | enum CancelOp |
38 | { | 38 | { |
39 | CO_Invalid = -2, | 39 | CO_Invalid = -2, |
40 | CO_Hard = -1, | 40 | CO_Hard = -1, |
@@ -43,7 +43,7 @@ typedef enum | |||
43 | CO_Line = LUA_MASKLINE, | 43 | CO_Line = LUA_MASKLINE, |
44 | CO_Call = LUA_MASKCALL, | 44 | CO_Call = LUA_MASKCALL, |
45 | CO_Ret = LUA_MASKRET, | 45 | CO_Ret = LUA_MASKRET, |
46 | } CancelOp; | 46 | }; |
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/ |
49 | static constexpr UniqueKey CANCEL_ERROR{ 0xe97d41626cc97577ull }; // 'cancel_error' sentinel | 49 | static constexpr UniqueKey CANCEL_ERROR{ 0xe97d41626cc97577ull }; // 'cancel_error' sentinel |