diff options
author | Roland McGrath <roland@gnu.org> | 1994-05-05 10:53:15 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1994-05-05 10:53:15 +0000 |
commit | ebfe9db847dc4610b9ef319ce082b4d405f74935 (patch) | |
tree | ff3d94d948500f5d343fffada12bad2551a99c1d /mach | |
parent | 21f69f2dfcc53131850592b775b9af3d7ecb69c2 (diff) |
entered into RCS
Diffstat (limited to 'mach')
-rw-r--r-- | mach/spin-lock.h | 1 | ||||
-rw-r--r-- | mach/spin-solid.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/mach/spin-lock.h b/mach/spin-lock.h index 4ea7d4738a..13b5e245b6 100644 --- a/mach/spin-lock.h +++ b/mach/spin-lock.h @@ -25,6 +25,7 @@ Cambridge, MA 02139, USA. */ typedef __spin_lock_t spin_lock_t; #define SPIN_LOCK_INITIALIZER __SPIN_LOCK_INITIALIZER +#define spin_lock_init(lock) __spin_lock_init (lock) #define spin_lock(lock) __spin_lock (lock) #define spin_try_lock(lock) __spin_try_lock (lock) #define spin_unlock(lock) __spin_unlock (lock) diff --git a/mach/spin-solid.c b/mach/spin-solid.c index 57f5c66262..b39d39849d 100644 --- a/mach/spin-solid.c +++ b/mach/spin-solid.c @@ -21,7 +21,7 @@ Cambridge, MA 02139, USA. */ void __spin_lock_solid (spin_lock_t *lock) { - while (__spin_lock_locked (lock) && ! __spin_try_lock (lock)) + while (__spin_lock_locked (lock) || ! __spin_try_lock (lock)) /* Yield to another thread (system call). */ __swtch (); } |