Subject: CVS commit: src/lib/libpthread
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 01/25/2003 02:47:07
Module Name:	src
Committed By:	nathanw
Date:		Sat Jan 25 00:47:06 UTC 2003

Modified Files:
	src/lib/libpthread: pthread_barrier.c pthread_types.h

Log Message:
Make pthread_barrier_wait() handle spurious wakeups from pthread__block()
by adding a generation number to the barrier structure and incrementing it
when the barrier fires.

XXX this is an ABI change for anything using barriers, but the library is
new enough and nothing in the tree uses barriers so I'm going to let it
slide. Using the private data pointer for a field that will always be present
would be excessive.


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 src/lib/libpthread/pthread_barrier.c \
    src/lib/libpthread/pthread_types.h

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