diff options
author | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-21 08:57:03 +0200 |
---|---|---|
committer | Benoit Germain <benoit.germain@ubisoft.com> | 2024-05-21 08:57:03 +0200 |
commit | e972ee3b65bc85dbee8e1e7f74594490037dcb67 (patch) | |
tree | c3c7021b1cd66d359a071a38d7397f34db451ef3 /src/lane.h | |
parent | e17ab4ffe5b675b0163368cd893d2e703c874675 (diff) | |
download | lanes-e972ee3b65bc85dbee8e1e7f74594490037dcb67.tar.gz lanes-e972ee3b65bc85dbee8e1e7f74594490037dcb67.tar.bz2 lanes-e972ee3b65bc85dbee8e1e7f74594490037dcb67.zip |
More string_view
Diffstat (limited to 'src/lane.h')
-rw-r--r-- | src/lane.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -8,6 +8,7 @@ | |||
8 | #include <condition_variable> | 8 | #include <condition_variable> |
9 | #include <latch> | 9 | #include <latch> |
10 | #include <stop_token> | 10 | #include <stop_token> |
11 | #include <string_view> | ||
11 | #include <thread> | 12 | #include <thread> |
12 | 13 | ||
13 | // ################################################################################################# | 14 | // ################################################################################################# |
@@ -127,14 +128,14 @@ class Lane | |||
127 | 128 | ||
128 | void changeDebugName(int nameIdx_); | 129 | void changeDebugName(int nameIdx_); |
129 | void close() { lua_State* _L{ L }; L = nullptr; lua_close(_L); } | 130 | void close() { lua_State* _L{ L }; L = nullptr; lua_close(_L); } |
130 | [[nodiscard]] char const* errorTraceLevelString() const; | 131 | [[nodiscard]] std::string_view errorTraceLevelString() const; |
131 | [[nodiscard]] int pushErrorHandler() const; | 132 | [[nodiscard]] int pushErrorHandler() const; |
132 | void pushErrorTraceLevel(lua_State* L_) const; | 133 | [[nodiscard]] std::string_view pushErrorTraceLevel(lua_State* L_) const; |
133 | static void PushMetatable(lua_State* L_); | 134 | static void PushMetatable(lua_State* L_); |
134 | void pushThreadStatus(lua_State* L_) const; | 135 | [[nodiscard]] std::string_view pushThreadStatus(lua_State* L_) const; |
135 | void securizeDebugName(lua_State* L_); | 136 | void securizeDebugName(lua_State* L_); |
136 | void startThread(int priority_); | 137 | void startThread(int priority_); |
137 | [[nodiscard]] char const* threadStatusString() const; | 138 | [[nodiscard]] std::string_view threadStatusString() const; |
138 | [[nodiscard]] bool waitForCompletion(std::chrono::time_point<std::chrono::steady_clock> until_); | 139 | [[nodiscard]] bool waitForCompletion(std::chrono::time_point<std::chrono::steady_clock> until_); |
139 | }; | 140 | }; |
140 | 141 | ||