aboutsummaryrefslogtreecommitdiff
path: root/src/lane.h
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-05-21 08:57:03 +0200
committerBenoit Germain <benoit.germain@ubisoft.com>2024-05-21 08:57:03 +0200
commite972ee3b65bc85dbee8e1e7f74594490037dcb67 (patch)
treec3c7021b1cd66d359a071a38d7397f34db451ef3 /src/lane.h
parente17ab4ffe5b675b0163368cd893d2e703c874675 (diff)
downloadlanes-e972ee3b65bc85dbee8e1e7f74594490037dcb67.tar.gz
lanes-e972ee3b65bc85dbee8e1e7f74594490037dcb67.tar.bz2
lanes-e972ee3b65bc85dbee8e1e7f74594490037dcb67.zip
More string_view
Diffstat (limited to 'src/lane.h')
-rw-r--r--src/lane.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lane.h b/src/lane.h
index 10045c8..3c1ab58 100644
--- a/src/lane.h
+++ b/src/lane.h
@@ -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