From f3b7facea8de585dda1d4f5bd1d9716b40b1ce94 Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Thu, 4 Jul 2024 09:46:53 +0200 Subject: get_debug_threadname → get_threadname MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/lane.cpp | 8 ++++---- src/lanes.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/lane.cpp b/src/lane.cpp index e045d88..7182ad6 100644 --- a/src/lane.cpp +++ b/src/lane.cpp @@ -44,8 +44,8 @@ static constexpr UniqueKey kCachedTostring{ 0xAB5EA23BCEA0C35Cull }; // ################################################################################################# // ################################################################################################# -// lane:get_debug_threadname() -static LUAG_FUNC(get_debug_threadname) +// lane:get_threadname() +static LUAG_FUNC(get_threadname) { Lane* const _lane{ ToLane(L_, 1) }; luaL_argcheck(L_, lua_gettop(L_) == 1, 2, "too many arguments"); @@ -1079,7 +1079,7 @@ namespace { { "__gc", LG_lane_gc }, { "__index", LG_thread_index }, { "cancel", LG_thread_cancel }, - { "get_debug_threadname", LG_get_debug_threadname }, + { "get_threadname", LG_get_threadname }, { "join", LG_thread_join }, { "resume", LG_thread_resume }, { nullptr, nullptr } @@ -1087,7 +1087,7 @@ namespace { } // namespace local } // namespace - // contains keys: { __close, __gc, __index, kCachedError, kCachedTostring, cancel, get_debug_threadname, join } + // contains keys: { __close, __gc, __index, kCachedError, kCachedTostring, cancel, get_threadname, join } void Lane::PushMetatable(lua_State* L_) { STACK_CHECK_START_REL(L_, 0); diff --git a/src/lanes.cpp b/src/lanes.cpp index f1b5884..b096774 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp @@ -723,7 +723,7 @@ LUAG_FUNC(configure) STACK_CHECK(L_, 2); // prepare the metatable for threads - // contains keys: { __gc, __index, cancel, join, get_debug_threadname } + // contains keys: { __gc, __index, cancel, join, get_threadname } Lane::PushMetatable(L_); // L_: settings M {lane_mt} lua_pushcclosure(L_, LG_lane_new, 1); // L_: settings M lane_new lua_setfield(L_, -2, "lane_new"); // L_: settings M -- cgit v1.2.3-55-g6feb