NetBSD/lib/libpthread
ad 8ccc6e060d - Don't take the mutex's spinlock (ptr_interlock) in pthread_cond_wait().
Instead, make the deferred wakeup list a per-thread array and pass down
  the lwpid_t's that way.

- In pthread_cond_wait(), take the mutex before dealing with early wakeup.
  In this way there should never be contention on the CV's spinlock if
  the app follows POSIX rules (there should only be contention on the
  user-provided mutex).

- Add a port of the kernel's rwlocks. The rwlock's spinlock is only taken if
  there is contention. This is enabled where atomic ops are available. Right
  now that is only i386 and amd64 because I don't have other hardware to
  test with. It's trivial to add stubs for other architectures as long as
  they have compare-and-swap. When we have proper atomic ops the old rwlock
  code can be removed.

- Add a new mutex implementation that's similar to the kernel's mutexes, but
  uses compare-and-swap to maintain the waiters list, so no spinlocks are
  involved. Same caveats apply as for the rwlocks.
2007-09-07 14:09:27 +00:00
..
2007-08-16 01:09:34 +00:00
2005-06-17 18:23:52 +00:00
2005-06-17 18:26:53 +00:00
2005-06-17 18:26:53 +00:00
2007-04-17 21:11:47 +00:00
2005-06-17 18:26:53 +00:00
2005-06-17 18:26:53 +00:00
2005-06-17 18:26:53 +00:00
2005-06-17 18:26:53 +00:00
2005-06-17 18:26:53 +00:00
2005-06-17 18:26:53 +00:00
2007-08-23 19:21:40 +00:00