diff options
author | deischen <deischen@FreeBSD.org> | 2003-09-03 17:56:26 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2003-09-03 17:56:26 +0000 |
commit | 919bc52171f32bfe264b987934e1055b6901ac6d (patch) | |
tree | 4224af62a2f45f6a320c58acdd7f40a2692ca686 /lib/libpthread/sys/lock.h | |
parent | 43632098e791da21a8b261c5b05b55cba97ae911 (diff) | |
download | FreeBSD-src-919bc52171f32bfe264b987934e1055b6901ac6d.zip FreeBSD-src-919bc52171f32bfe264b987934e1055b6901ac6d.tar.gz |
Don't assume sizeof(long) = sizeof(int) on x86; use int
instead of long types for low-level locks.
Add prototypes for some internal libc functions that are
wrapped by the library as cancellation points.
Add memory barriers to alpha atomic swap functions (submitted
by davidxu).
Requested by: bde
Diffstat (limited to 'lib/libpthread/sys/lock.h')
-rw-r--r-- | lib/libpthread/sys/lock.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpthread/sys/lock.h b/lib/libpthread/sys/lock.h index 9d4b994..917ca63 100644 --- a/lib/libpthread/sys/lock.h +++ b/lib/libpthread/sys/lock.h @@ -51,9 +51,9 @@ struct lock { /* Try to make this >= CACHELINESIZE */ struct lockreq { - volatile long lr_locked; /* lock granted = 0, busy otherwise */ struct lockuser *lr_watcher; /* only used for priority locks */ struct lockuser *lr_owner; /* only used for priority locks */ + volatile int lr_locked; /* lock granted = 0, busy otherwise */ volatile int lr_active; /* non-zero if the lock is last lock for thread */ }; |