diff options
author | 2000-01-06 07:06:42 +0000 | |
---|---|---|
committer | 2000-01-06 07:06:42 +0000 | |
commit | 54332c957ac8114753450b039e1475d4e50f4523 (patch) | |
tree | acf120b5ff23f22d735cfab373042b4cd6036496 /lib/libc_r | |
parent | Rework language. (diff) | |
download | wireguard-openbsd-54332c957ac8114753450b039e1475d4e50f4523.tar.xz wireguard-openbsd-54332c957ac8114753450b039e1475d4e50f4523.zip |
volatile the spinlock
Diffstat (limited to 'lib/libc_r')
-rw-r--r-- | lib/libc_r/include/spinlock.h | 14 |
1 files changed, 7 insertions, 7 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 } |