Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/lib/libpthread/pthread_types.h,v rcsdiff: /ftp/cvs/cvsroot/src/lib/libpthread/pthread_types.h,v: warning: Unknown phrases like `commitid ...;' are present. retrieving revision 1.7 retrieving revision 1.8 diff -u -p -r1.7 -r1.8 --- src/lib/libpthread/pthread_types.h 2007/08/04 13:37:50 1.7 +++ src/lib/libpthread/pthread_types.h 2007/09/07 14:09:28 1.8 @@ -1,4 +1,4 @@ -/* $NetBSD: pthread_types.h,v 1.7 2007/08/04 13:37:50 ad Exp $ */ +/* $NetBSD: pthread_types.h,v 1.8 2007/09/07 14:09:28 ad Exp $ */ /*- * Copyright (c) 2001 The NetBSD Foundation, Inc. @@ -98,7 +98,7 @@ struct __pthread_mutex_st { unsigned int ptm_magic; pthread_spin_t ptm_lock; pthread_spin_t ptm_interlock; - pthread_t ptm_owner; + volatile pthread_t ptm_owner; pthread_queue_t ptm_blocked; void *ptm_private; }; @@ -185,7 +185,7 @@ struct __pthread_rwlock_st { pthread_queue_t ptr_rblocked; pthread_queue_t ptr_wblocked; unsigned int ptr_nreaders; - pthread_t ptr_writer; + volatile pthread_t ptr_writer; void *ptr_private; };