From 0880a486b0f3bb289ec160fc8e199e126e4f45a0 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Wed, 3 Jul 2024 16:57:38 +0200 Subject: It is possible to index and join a suspended coroutine lane --- src/lane.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lane.h') diff --git a/src/lane.h b/src/lane.h index 964c3c0..6dccd3a 100644 --- a/src/lane.h +++ b/src/lane.h @@ -167,9 +167,11 @@ class Lane [[nodiscard]] std::string_view pushErrorTraceLevel(lua_State* L_) const; static void PushMetatable(lua_State* L_); void pushStatusString(lua_State* L_) const; + void resetResultsStorage(lua_State* const L_, int gc_cb_idx_); void securizeDebugName(lua_State* L_); void startThread(int priority_); [[nodiscard]] std::string_view threadStatusString() const; + // wait until the lane stops working with its state (either Suspended or Done+) [[nodiscard]] bool waitForCompletion(std::chrono::time_point until_); }; -- cgit v1.2.3-55-g6feb