Commit 03854a84 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

MDEV-32374 Improve lsn_lock. Also use futex-like on Windows

Upon further benchmarking, it turns out srw_mutex performs overall
slightly better with WaitOnAddress than CRITICAL_SECTION.
parent ad13fb36
......@@ -180,9 +180,6 @@ struct log_t
/* On ARM, we do more spinning */
typedef srw_spin_lock log_rwlock;
typedef pthread_mutex_wrapper<true> log_lsn_lock;
#elif defined _WIN32
typedef srw_lock log_rwlock;
typedef pthread_mutex_wrapper<false> log_lsn_lock;
#else
typedef srw_lock log_rwlock;
typedef srw_mutex log_lsn_lock;
......
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