diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-07-03 16:57:38 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-07-03 16:57:38 +0200 |
commit | 0880a486b0f3bb289ec160fc8e199e126e4f45a0 (patch) | |
tree | 7a970ea9943d6d498ebb87efc9b7d76dca637e1a /src/lane.h | |
parent | ffedd175233975f3ca9ac940df9883898d5ace25 (diff) | |
download | lanes-0880a486b0f3bb289ec160fc8e199e126e4f45a0.tar.gz lanes-0880a486b0f3bb289ec160fc8e199e126e4f45a0.tar.bz2 lanes-0880a486b0f3bb289ec160fc8e199e126e4f45a0.zip |
It is possible to index and join a suspended coroutine lane
Diffstat (limited to 'src/lane.h')
-rw-r--r-- | src/lane.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -167,9 +167,11 @@ class Lane | |||
167 | [[nodiscard]] std::string_view pushErrorTraceLevel(lua_State* L_) const; | 167 | [[nodiscard]] std::string_view pushErrorTraceLevel(lua_State* L_) const; |
168 | static void PushMetatable(lua_State* L_); | 168 | static void PushMetatable(lua_State* L_); |
169 | void pushStatusString(lua_State* L_) const; | 169 | void pushStatusString(lua_State* L_) const; |
170 | void resetResultsStorage(lua_State* const L_, int gc_cb_idx_); | ||
170 | void securizeDebugName(lua_State* L_); | 171 | void securizeDebugName(lua_State* L_); |
171 | void startThread(int priority_); | 172 | void startThread(int priority_); |
172 | [[nodiscard]] std::string_view threadStatusString() const; | 173 | [[nodiscard]] std::string_view threadStatusString() const; |
174 | // wait until the lane stops working with its state (either Suspended or Done+) | ||
173 | [[nodiscard]] bool waitForCompletion(std::chrono::time_point<std::chrono::steady_clock> until_); | 175 | [[nodiscard]] bool waitForCompletion(std::chrono::time_point<std::chrono::steady_clock> until_); |
174 | }; | 176 | }; |
175 | 177 | ||