diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/thread/pthread_spin_lock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_spin_lock.c b/src/thread/pthread_spin_lock.c index 9e43f475..59fa6ea8 100644 --- a/src/thread/pthread_spin_lock.c +++ b/src/thread/pthread_spin_lock.c @@ -2,6 +2,6 @@ int pthread_spin_lock(pthread_spinlock_t *s) { - while (*s || a_xchg(s, 1)); + while (a_xchg(s, 1)); return 0; } |