Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libpthread



Module Name:    src
Committed By:   ad
Date:           Tue Sep 11 18:11:29 UTC 2007

Modified Files:
        src/lib/libpthread: pthread_int.h pthread_mutex2.c

Log Message:
Make the new mutexes faster:

- Eliminate mutexattr_private and just set a bit in ptm_owner if the mutex
  is recursive. This forces the slow path to be taken for recursive mutexes.
  Overload an unused field in pthread_mutex_t to record whether or not it's
  an errorcheck mutex.
- Streamline pthread_mutex_lock / pthread_mutex_unlock a bit more. As a
  side effect makes it possible to have assembly stubs for them.


To generate a diff of this commit:
cvs rdiff -r1.53 -r1.54 src/lib/libpthread/pthread_int.h
cvs rdiff -r1.5 -r1.6 src/lib/libpthread/pthread_mutex2.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index