From 6d271c5796eae14d1dc60e778435495ebfb540d8 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Tue, 7 May 2024 17:56:10 +0200 Subject: Linda API changes * timeout clarifications (negative values are no longer accepted, use nil instead) * linda(send, linda.null, key, ...) removed, if you want to send a nil, just do it as usual --- src/cancel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cancel.h') diff --git a/src/cancel.h b/src/cancel.h index 3df5252..1918df3 100644 --- a/src/cancel.h +++ b/src/cancel.h @@ -49,7 +49,7 @@ enum class CancelOp static constexpr UniqueKey kCancelError{ 0x0630345FEF912746ull, "lanes.cancel_error" }; // 'raise_cancel_error' sentinel [[nodiscard]] CancelOp which_cancel_op(char const* opString_); -[[nodiscard]] CancelResult thread_cancel(Lane* lane_, CancelOp op_, int hookCount_, lua_Duration secs_, bool wakeLane_); +[[nodiscard]] CancelResult thread_cancel(Lane* lane_, CancelOp op_, int hookCount_, std::chrono::time_point until_, bool wakeLane_); [[noreturn]] static inline void raise_cancel_error(lua_State* L_) { -- cgit v1.2.3-55-g6feb