summaryrefslogtreecommitdiff
path: root/sql/scheduler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/scheduler.cc')
-rw-r--r--sql/scheduler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/scheduler.cc b/sql/scheduler.cc
index be068859a6f..f25ae2b663e 100644
--- a/sql/scheduler.cc
+++ b/sql/scheduler.cc
@@ -282,8 +282,8 @@ static bool libevent_init(void)
killed_threads= 0;
kill_pool_threads= FALSE;
- pthread_mutex_init(&LOCK_event_loop, NULL);
- pthread_mutex_init(&LOCK_thd_add, NULL);
+ pthread_mutex_init(&LOCK_event_loop, MY_MUTEX_INIT_FAST);
+ pthread_mutex_init(&LOCK_thd_add, MY_MUTEX_INIT_FAST);
/* set up sockets used to add new thds to the event pool */
if (init_socketpair(thd_add_pair))