diff options
Diffstat (limited to 'src/thread/pthread_spin_trylock.c')
-rw-r--r-- | src/thread/pthread_spin_trylock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread/pthread_spin_trylock.c b/src/thread/pthread_spin_trylock.c index c12696b3..59de695d 100644 --- a/src/thread/pthread_spin_trylock.c +++ b/src/thread/pthread_spin_trylock.c @@ -2,5 +2,5 @@ int pthread_spin_trylock(pthread_spinlock_t *s) { - return -a_xchg(s, 1) & EBUSY; + return -a_swap(s, 1) & EBUSY; } |