Skip to content

Commit

Permalink
Fix force pthread rwlock
Browse files Browse the repository at this point in the history
  • Loading branch information
rickard-green authored and Erlang/OTP committed Feb 17, 2010
1 parent 4c3aebe commit 4a33e37
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion erts/aclocal.m4
Original file line number Diff line number Diff line change
Expand Up @@ -826,8 +826,11 @@ case "$THR_LIB_NAME" in
AC_CHECK_FUNC(pthread_spin_lock, \
AC_DEFINE(ETHR_HAVE_PTHREAD_SPIN_LOCK, 1, \
[Define if you have the pthread_spin_lock function.]))
test "$force_linux_pthread_rwlocks" = "yes" || {
force_linux_pthread_rwlocks=no
}
case "$force_linux_pthread_rwlocks-$host_os" in
yes-linux*) # Writers may get starved
no-linux*) # Writers may get starved
# TODO: write a test that tests the implementation
;;
*)
Expand Down

0 comments on commit 4a33e37

Please sign in to comment.