diff options
author | leak <leak@bitmx.net> | 2014-06-21 19:39:16 +0200 |
---|---|---|
committer | leak <leak@bitmx.net> | 2014-06-21 19:39:16 +0200 |
commit | 33dc72a812ad5fb6e17a26b14d6d7f9aaf5d34b5 (patch) | |
tree | 6b7a19cf1f50007dc332d2bd07c27f2766d9ec52 /src/server/shared/Database/MySQLThreading.h | |
parent | 55dee85ed80d43cc0d312d588652f85d9a027297 (diff) |
Replaced Threading and SFMT access related code with std::thread and boost TSS
Note: The remote access thread is currently broken due to unknown ACE fail (will be replaced at some point anyways..)
Diffstat (limited to 'src/server/shared/Database/MySQLThreading.h')
-rw-r--r-- | src/server/shared/Database/MySQLThreading.h | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/src/server/shared/Database/MySQLThreading.h b/src/server/shared/Database/MySQLThreading.h index 0f6af8ace20..da234138879 100644 --- a/src/server/shared/Database/MySQLThreading.h +++ b/src/server/shared/Database/MySQLThreading.h @@ -23,31 +23,6 @@ class 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(); - TC_LOG_WARN("sql.sql", "Core thread with ID [" UI64FMTD "] initializing MySQL thread.", - (uint64)ACE_Based::Thread::currentId()); - } - - /*! 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(); - TC_LOG_WARN("sql.sql", "Core thread with ID [" UI64FMTD "] shutting down MySQL thread.", - (uint64)ACE_Based::Thread::currentId()); - } - static void Library_Init() { mysql_library_init(-1, NULL, NULL); @@ -59,4 +34,4 @@ class MySQL } }; -#endif
\ No newline at end of file +#endif |