mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
This patch handles compiles with threads, namely if you don't have pthreads it will remove support for threads in the applications (and it is fixed in such a way that tests won't break).
This commit is contained in:
@@ -76,7 +76,9 @@ TODO:
|
||||
#define RAND_STRING_SIZE 126
|
||||
|
||||
#include "client_priv.h"
|
||||
#ifdef HAVE_LIBPTHREAD
|
||||
#include <my_pthread.h>
|
||||
#endif
|
||||
#include <my_sys.h>
|
||||
#include <m_string.h>
|
||||
#include <mysql.h>
|
||||
@@ -987,6 +989,7 @@ run_scheduler(stats *sptr, statement *stmts, uint concur, ulonglong limit)
|
||||
exit(0);
|
||||
}
|
||||
|
||||
#ifdef HAVE_LIBPTHREAD
|
||||
if (opt_use_threads)
|
||||
{
|
||||
pthread_t mainthread; /* Thread descriptor */
|
||||
@@ -1008,8 +1011,11 @@ run_scheduler(stats *sptr, statement *stmts, uint concur, ulonglong limit)
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#ifndef __WIN__
|
||||
#ifdef HAVE_LIBPTHREAD
|
||||
else
|
||||
#endif
|
||||
{
|
||||
fflush(NULL);
|
||||
for (x= 0; x < concur; x++)
|
||||
|
Reference in New Issue
Block a user