• Sergei Golubchik's avatar
    wt needs to use its own implementation of rwlocks with · 14c14661
    Sergei Golubchik authored
    reader preference, at least where system rwlocks are fair.
    
    include/my_global.h:
      wt uses mutex-based rwlock implementation unless on linux
    include/waiting_threads.h:
      mutex-based rwlock implementation with reader preference
    mysys/thr_rwlock.c:
      revert the change. make my_rw_locks fair
    mysys/waiting_threads.c:
      mutex-based rwlock implementation with reader preference.
      convert complex multi-line macros to static functions
    14c14661
waiting_threads.h 5.57 KB