diff options
author | davidxu <davidxu@FreeBSD.org> | 2010-10-20 02:34:02 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2010-10-20 02:34:02 +0000 |
commit | 1126acd0dc63c0b7713bc81b5e71684fb87c7fc0 (patch) | |
tree | 6187f2f58cdd428ad27ac0f3fb042a22046585f2 /lib/libc/include | |
parent | 520d21ea78ad909c12b58c25403192af742c855c (diff) | |
download | FreeBSD-src-1126acd0dc63c0b7713bc81b5e71684fb87c7fc0.zip FreeBSD-src-1126acd0dc63c0b7713bc81b5e71684fb87c7fc0.tar.gz |
Revert revision 214007, I realized that MySQL wants to resolve
a silly rwlock deadlock problem, the deadlock is caused by writer
waiters, if a thread has already locked a reader lock, and wants to
acquire another reader lock, it will be blocked by writer waiters,
but we had already fixed it years ago.
Diffstat (limited to 'lib/libc/include')
-rw-r--r-- | lib/libc/include/namespace.h | 2 | ||||
-rw-r--r-- | lib/libc/include/un-namespace.h | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/lib/libc/include/namespace.h b/lib/libc/include/namespace.h index 590eba7..6ba8bab 100644 --- a/lib/libc/include/namespace.h +++ b/lib/libc/include/namespace.h @@ -177,10 +177,8 @@ #define pthread_rwlock_unlock _pthread_rwlock_unlock #define pthread_rwlock_wrlock _pthread_rwlock_wrlock #define pthread_rwlockattr_destroy _pthread_rwlockattr_destroy -#define pthread_rwlockattr_getkind_np _pthread_rwlockattr_getkind_np #define pthread_rwlockattr_getpshared _pthread_rwlockattr_getpshared #define pthread_rwlockattr_init _pthread_rwlockattr_init -#define pthread_rwlockattr_setkind_np _pthread_rwlockattr_setkind_np #define pthread_rwlockattr_setpshared _pthread_rwlockattr_setpshared #define pthread_self _pthread_self #define pthread_set_name_np _pthread_set_name_np diff --git a/lib/libc/include/un-namespace.h b/lib/libc/include/un-namespace.h index 7a8f9d9..00f0df2 100644 --- a/lib/libc/include/un-namespace.h +++ b/lib/libc/include/un-namespace.h @@ -158,10 +158,8 @@ #undef pthread_rwlock_unlock #undef pthread_rwlock_wrlock #undef pthread_rwlockattr_destroy -#undef pthread_rwlockattr_getkind_np #undef pthread_rwlockattr_getpshared #undef pthread_rwlockattr_init -#undef pthread_rwlockattr_setkind_np #undef pthread_rwlockattr_setpshared #undef pthread_self #undef pthread_set_name_np |