Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
MySQLThreading.h
Go to the documentation of this file.
1/*
2* This file is part of Project SkyFire https://www.projectskyfire.org.
3* See LICENSE.md file for Copyright information
4*/
5
6#ifndef _MYSQLTHREADING_H
7#define _MYSQLTHREADING_H
8
9#include "Log.h"
10
11class MySQL
12{
13public:
21 static void Thread_Init()
22 {
23 mysql_thread_init();
24 SF_LOG_WARN("sql.sql", "Core thread with ID [" UI64FMTD "] initializing MySQL thread.",
26 }
27
32 static void Thread_End()
33 {
34 mysql_thread_end();
35 SF_LOG_WARN("sql.sql", "Core thread with ID [" UI64FMTD "] shutting down MySQL thread.",
37 }
38
39 static void Library_Init()
40 {
41 mysql_library_init(-1, NULL, NULL);
42 }
43
44 static void Library_End()
45 {
46 mysql_library_end();
47 }
48};
49
50#endif
#define UI64FMTD
Definition Define.h:64
std::uint64_t uint64
Definition Define.h:76
#define SF_LOG_WARN(filterType__,...)
Definition Log.h:140
static void Thread_Init()
static void Library_Init()
static void Thread_End()
static void Library_End()
static uint64_t currentId()