* Reverted r33643 - while it doubled the performance for my test case (with

high contention of the read lock (I experimented with the VM page mapping
  lock)), it actually hurt the compile performance pretty obviously.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33647 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2009-10-19 00:16:54 +00:00
parent 7d05cf36fc
commit 39e3058e5b
2 changed files with 7 additions and 23 deletions
+1 -3
View File
@@ -42,7 +42,6 @@ struct rw_lock_waiter;
typedef struct rw_lock {
const char* name;
mutex lock;
struct rw_lock_waiter* waiters;
thread_id holder;
int32 reader_count;
@@ -86,8 +85,7 @@ typedef struct rw_lock {
# define RECURSIVE_LOCK_INITIALIZER(name) { MUTEX_INITIALIZER(name), -1, 0 }
#endif
#define RW_LOCK_INITIALIZER(name) { name, MUTEX_INITIALIZER(name), \
NULL, -1, 0, 0, 0 }
#define RW_LOCK_INITIALIZER(name) { name, NULL, -1, 0, 0, 0 }
#if KDEBUG