summaryrefslogtreecommitdiff
path: root/src/server/database/Database/MySQLThreading.h
diff options
context:
space:
mode:
authorKitzunu <24550914+Kitzunu@users.noreply.github.com>2021-05-30 21:12:01 +0200
committerGitHub <noreply@github.com>2021-05-30 21:12:01 +0200
commitae665f7ec32c5da3877b4acb0d0dd2534e9cdd06 (patch)
tree4354987c0cf316e701cedbd83e805d1c773c3dd6 /src/server/database/Database/MySQLThreading.h
parente93159b408f2ce2162b98c9a631fa7b932a97593 (diff)
feat(Core/Command): server debug (#6007)
* initial work * fix query * load * clean up * remove from startup * ACE * remove static * Update MySQLThreading.cpp * not used * Update MySQLThreading.cpp * unit testing * Update WorldMock.h * show Boost ver * Update WorldMock.h * include * Now we have boost::filesystem woo * fix build * fix typo
Diffstat (limited to 'src/server/database/Database/MySQLThreading.h')
-rw-r--r--src/server/database/Database/MySQLThreading.h38
1 files changed, 5 insertions, 33 deletions
diff --git a/src/server/database/Database/MySQLThreading.h b/src/server/database/Database/MySQLThreading.h
index 29f1a07405..8a26ba375b 100644
--- a/src/server/database/Database/MySQLThreading.h
+++ b/src/server/database/Database/MySQLThreading.h
@@ -9,39 +9,11 @@
#include "Log.h"
-class MySQL
+namespace MySQL
{
-public:
- /*! Create a thread on the MySQL server to mirrior the calling thread,
- initializes thread-specific variables and allows thread-specific
- operations without concurrence from other threads.
- This should only be called if multiple core threads are running
- on the same MySQL connection. Seperate MySQL connections implicitly
- create a mirror thread.
- */
- static void Thread_Init()
- {
- mysql_thread_init();
- }
-
- /*! Shuts down MySQL thread and frees resources, should only be called
- when we terminate. MySQL threads and connections are not configurable
- during runtime.
- */
- static void Thread_End()
- {
- mysql_thread_end();
- }
-
- static void Library_Init()
- {
- mysql_library_init(-1, nullptr, nullptr);
- }
-
- static void Library_End()
- {
- mysql_library_end();
- }
-};
+ void Library_Init();
+ void Library_End();
+ uint32 GetLibraryVersion();
+}
#endif