aboutsummaryrefslogtreecommitdiff
path: root/src/linda.hpp
diff options
context:
space:
mode:
authorBenoit Germain <benoit.germain@ubisoft.com>2024-12-09 17:39:30 +0100
committerBenoit Germain <benoit.germain@ubisoft.com>2024-12-09 17:39:30 +0100
commit5f9ef9e1b75adc27a4ae4129cc33137aa7aaa565 (patch)
tree2500bc537a045a66ae68288f01bff569decdd80c /src/linda.hpp
parenta334c7662a1a7be5b79efe72076c49ab7c714070 (diff)
downloadlanes-5f9ef9e1b75adc27a4ae4129cc33137aa7aaa565.tar.gz
lanes-5f9ef9e1b75adc27a4ae4129cc33137aa7aaa565.tar.bz2
lanes-5f9ef9e1b75adc27a4ae4129cc33137aa7aaa565.zip
Improved DeepPrelude architecture
Diffstat (limited to 'src/linda.hpp')
-rw-r--r--src/linda.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/linda.hpp b/src/linda.hpp
index aa63316..920db1b 100644
--- a/src/linda.hpp
+++ b/src/linda.hpp
@@ -82,6 +82,9 @@ class Linda
82 Linda& operator=(Linda const&&) = delete; 82 Linda& operator=(Linda const&&) = delete;
83 83
84 private: 84 private:
85 [[nodiscard]]
86 static Linda* CreateTimerLinda(lua_State* L_);
87 static void DeleteTimerLinda(lua_State* L_, Linda* linda_);
85 void freeAllocatedName(); 88 void freeAllocatedName();
86 void setName(std::string_view const& name_); 89 void setName(std::string_view const& name_);
87 90
@@ -89,6 +92,9 @@ class Linda
89 [[nodiscard]] 92 [[nodiscard]]
90 Keeper* acquireKeeper() const; 93 Keeper* acquireKeeper() const;
91 [[nodiscard]] 94 [[nodiscard]]
95 static Linda* CreateTimerLinda(lua_State* const L_, Passkey<Universe>) { return CreateTimerLinda(L_); }
96 static void DeleteTimerLinda(lua_State* const L_, Linda* const linda_, Passkey<Universe>) { DeleteTimerLinda(L_, linda_); }
97 [[nodiscard]]
92 std::string_view getName() const; 98 std::string_view getName() const;
93 [[nodiscard]] 99 [[nodiscard]]
94 bool inKeeperOperation() const { return keeperOperationCount.load(std::memory_order_seq_cst) != 0; } 100 bool inKeeperOperation() const { return keeperOperationCount.load(std::memory_order_seq_cst) != 0; }