Subject: CVS commit: src/lib/libpthread
To: None <source-changes@NetBSD.org>
From: Andrew Doran <ad@netbsd.org>
List: source-changes
Date: 09/08/2007 22:49:51
Module Name:	src
Committed By:	ad
Date:		Sat Sep  8 22:49:51 UTC 2007

Modified Files:
	src/lib/libpthread: pthread.c pthread_cond.c pthread_int.h
	    pthread_mutex.c pthread_mutex2.c pthread_rwlock2.c sem.c
	src/lib/libpthread/arch/i386: _context_u.S pthread_md.h

Log Message:
- Get rid of self->pt_mutexhint and use pthread__mutex_owned() instead.
- Update some comments and fix minor bugs. Minor cosmetic changes.
- Replace some spinlocks with mutexes and rwlocks.
- Change the process private semaphores to use mutexes and condition
  variables instead of doing the synchronization directly. Spinlocks
  are no longer used by the semaphore code.


To generate a diff of this commit:
cvs rdiff -r1.81 -r1.82 src/lib/libpthread/pthread.c
cvs rdiff -r1.35 -r1.36 src/lib/libpthread/pthread_cond.c
cvs rdiff -r1.51 -r1.52 src/lib/libpthread/pthread_int.h
cvs rdiff -r1.32 -r1.33 src/lib/libpthread/pthread_mutex.c
cvs rdiff -r1.1 -r1.2 src/lib/libpthread/pthread_mutex2.c \
    src/lib/libpthread/pthread_rwlock2.c
cvs rdiff -r1.16 -r1.17 src/lib/libpthread/sem.c
cvs rdiff -r1.4 -r1.5 src/lib/libpthread/arch/i386/_context_u.S
cvs rdiff -r1.8 -r1.9 src/lib/libpthread/arch/i386/pthread_md.h

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