mirror of
https://github.com/anope/anope.git
synced 2026-07-09 04:23:13 +02:00
Split db_mysql_live into two modules so other modules can make use of the asynchronous command interface
This commit is contained in:
@@ -39,6 +39,13 @@ void Thread::Join()
|
||||
pthread_join(Handle, NULL);
|
||||
}
|
||||
|
||||
/** Exit the thread. Note that the thread still must be joined to free resources!
|
||||
*/
|
||||
void Thread::Exit()
|
||||
{
|
||||
pthread_exit(0);
|
||||
}
|
||||
|
||||
/** Start a new thread
|
||||
* @param thread A pointer to a newley allocated thread
|
||||
*/
|
||||
|
||||
@@ -31,6 +31,13 @@ void Thread::Join()
|
||||
WaitForSingleObject(Handle, INFINITE);
|
||||
}
|
||||
|
||||
/** Exit the thread. Note that the thread still must be joined to free resources!
|
||||
*/
|
||||
void Thread::Exit()
|
||||
{
|
||||
ExitThread(0);
|
||||
}
|
||||
|
||||
/** Start a new thread
|
||||
* @param thread A pointer to a newley allocated thread
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user