Commit 503ab86f authored by unknown's avatar unknown

os0sync.c:

  Initing a mutex with MY_MUTEX_INIT_FAST may relieve thread thrashing on Linux


innobase/os/os0sync.c:
  Initing a mutex with MY_MUTEX_INIT_FAST may relieve thread thrashing on Linux
parent 52949169
...@@ -435,7 +435,7 @@ os_fast_mutex_init( ...@@ -435,7 +435,7 @@ os_fast_mutex_init(
InitializeCriticalSection((LPCRITICAL_SECTION) fast_mutex); InitializeCriticalSection((LPCRITICAL_SECTION) fast_mutex);
#else #else
pthread_mutex_init(fast_mutex, NULL); pthread_mutex_init(fast_mutex, MY_MUTEX_INIT_FAST);
#endif #endif
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment