diff options
author | Shauren <shauren.trinity@gmail.com> | 2024-06-12 21:41:29 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2024-06-12 21:41:29 +0200 |
commit | 7fcb126fcb7cff945936a7f5e051b07ce0de8a7f (patch) | |
tree | dff4c0a1fdf3ab28bdffd95dbe6694c119de0aa1 /src/server/database/Database/Transaction.h | |
parent | 00efee9ca12d6e625e9954a39768bbec029d0459 (diff) |
Core/Database: Remove future/promise typedefs from a public header (these are internal to database project)
Diffstat (limited to 'src/server/database/Database/Transaction.h')
-rw-r--r-- | src/server/database/Database/Transaction.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/database/Database/Transaction.h b/src/server/database/Database/Transaction.h index f4dcb9fae34..c60b74b58b8 100644 --- a/src/server/database/Database/Transaction.h +++ b/src/server/database/Database/Transaction.h @@ -22,6 +22,7 @@ #include "DatabaseEnvFwd.h" #include "StringFormat.h" #include <functional> +#include <future> #include <mutex> #include <variant> #include <vector> @@ -100,7 +101,7 @@ private: class TC_DATABASE_API TransactionCallback { public: - TransactionCallback(TransactionFuture&& future) : m_future(std::move(future)) { } + TransactionCallback(std::future<bool>&& future) : m_future(std::move(future)) { } TransactionCallback(TransactionCallback&&) = default; TransactionCallback& operator=(TransactionCallback&&) = default; @@ -112,7 +113,7 @@ public: bool InvokeIfReady(); - TransactionFuture m_future; + std::future<bool> m_future; std::function<void(bool)> m_callback; }; |