diff options
-rw-r--r-- | lib/libc_r/include/spinlock.h | 14 | ||||
-rw-r--r-- | lib/libpthread/include/spinlock.h | 14 |
2 files changed, 14 insertions, 14 deletions
diff --git a/lib/libc_r/include/spinlock.h b/lib/libc_r/include/spinlock.h index 772331be377..77605003df0 100644 --- a/lib/libc_r/include/spinlock.h +++ b/lib/libc_r/include/spinlock.h @@ -29,8 +29,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: spinlock.h,v 1.4 1999/11/25 07:01:29 d Exp $ - * $OpenBSD: spinlock.h,v 1.4 1999/11/25 07:01:29 d Exp $ + * $Id: spinlock.h,v 1.5 2000/01/06 07:06:42 d Exp $ + * $OpenBSD: spinlock.h,v 1.5 2000/01/06 07:06:42 d Exp $ * * Lock definitions used in both libc and libpthread. * @@ -45,11 +45,11 @@ /* * Lock structure with room for debugging information. */ -typedef struct { - volatile _spinlock_lock_t access_lock; - volatile void * lock_owner; - volatile const char * fname; - volatile int lineno; +typedef volatile struct { + _spinlock_lock_t access_lock; + void * lock_owner; + const char * fname; + int lineno; } spinlock_t; #define _SPINLOCK_INITIALIZER { _SPINLOCK_UNLOCKED, 0, 0, 0 } diff --git a/lib/libpthread/include/spinlock.h b/lib/libpthread/include/spinlock.h index 772331be377..77605003df0 100644 --- a/lib/libpthread/include/spinlock.h +++ b/lib/libpthread/include/spinlock.h @@ -29,8 +29,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: spinlock.h,v 1.4 1999/11/25 07:01:29 d Exp $ - * $OpenBSD: spinlock.h,v 1.4 1999/11/25 07:01:29 d Exp $ + * $Id: spinlock.h,v 1.5 2000/01/06 07:06:42 d Exp $ + * $OpenBSD: spinlock.h,v 1.5 2000/01/06 07:06:42 d Exp $ * * Lock definitions used in both libc and libpthread. * @@ -45,11 +45,11 @@ /* * Lock structure with room for debugging information. */ -typedef struct { - volatile _spinlock_lock_t access_lock; - volatile void * lock_owner; - volatile const char * fname; - volatile int lineno; +typedef volatile struct { + _spinlock_lock_t access_lock; + void * lock_owner; + const char * fname; + int lineno; } spinlock_t; #define _SPINLOCK_INITIALIZER { _SPINLOCK_UNLOCKED, 0, 0, 0 } |