RW_GIVE() needs to do a mb_memory() now.

This commit is contained in:
ad 2007-11-29 00:17:54 +00:00
parent 7b3b1e0427
commit c291a9d4fa

View File

@ -1,4 +1,4 @@
/* $NetBSD: rwlock.h,v 1.4 2007/11/29 00:14:27 ad Exp $ */
/* $NetBSD: rwlock.h,v 1.5 2007/11/29 00:17:54 ad Exp $ */
/*-
* Copyright (c) 2002, 2006 The NetBSD Foundation, Inc.
@ -48,7 +48,7 @@ struct krwlock {
#define __HAVE_SIMPLE_RW_LOCKS 1
#define RW_RECEIVE(rw) /* nothing */
#define RW_GIVE(rw) /* nothing */
#define RW_GIVE(rw) mb_memory()
#define RW_CAS(p, o, n) \
(_atomic_cas_ulong((volatile unsigned long *)(p), (o), (n)) == (o))