diff options
author | jb <jb@FreeBSD.org> | 1998-05-05 21:47:58 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 1998-05-05 21:47:58 +0000 |
commit | 0dd6c916394535b201bfcb3dca640b9e9bdbdd7f (patch) | |
tree | b6be29644a5e158c3ffa4126dba9c12038e4ef02 /lib | |
parent | 39a9cfde1477c98837881dae38cf2adbc6ca84eb (diff) | |
download | FreeBSD-src-0dd6c916394535b201bfcb3dca640b9e9bdbdd7f.zip FreeBSD-src-0dd6c916394535b201bfcb3dca640b9e9bdbdd7f.tar.gz |
Treat the lock value as volatile.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libc_r/uthread/uthread_spinlock.c | 4 | ||||
-rw-r--r-- | lib/libkse/thread/thr_spinlock.c | 4 | ||||
-rw-r--r-- | lib/libpthread/thread/thr_spinlock.c | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/libc_r/uthread/uthread_spinlock.c b/lib/libc_r/uthread/uthread_spinlock.c index b2fe269..27e2219 100644 --- a/lib/libc_r/uthread/uthread_spinlock.c +++ b/lib/libc_r/uthread/uthread_spinlock.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: uthread_spinlock.c,v 1.1 1998/04/29 09:59:28 jb Exp $ * */ @@ -47,7 +47,7 @@ * assumes that the lock will be available very soon. */ void -_spinlock(long *lck) +_spinlock(volatile long *lck) { do { /* diff --git a/lib/libkse/thread/thr_spinlock.c b/lib/libkse/thread/thr_spinlock.c index b2fe269..27e2219 100644 --- a/lib/libkse/thread/thr_spinlock.c +++ b/lib/libkse/thread/thr_spinlock.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: uthread_spinlock.c,v 1.1 1998/04/29 09:59:28 jb Exp $ * */ @@ -47,7 +47,7 @@ * assumes that the lock will be available very soon. */ void -_spinlock(long *lck) +_spinlock(volatile long *lck) { do { /* diff --git a/lib/libpthread/thread/thr_spinlock.c b/lib/libpthread/thread/thr_spinlock.c index b2fe269..27e2219 100644 --- a/lib/libpthread/thread/thr_spinlock.c +++ b/lib/libpthread/thread/thr_spinlock.c @@ -29,7 +29,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: uthread_spinlock.c,v 1.1 1998/04/29 09:59:28 jb Exp $ * */ @@ -47,7 +47,7 @@ * assumes that the lock will be available very soon. */ void -_spinlock(long *lck) +_spinlock(volatile long *lck) { do { /* |