X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_spin_trylock.c;fp=src%2Fthread%2Fpthread_spin_trylock.c;h=59de695ddad9ebb4ad941574681829513fe321db;hb=2b71a4d1dfb0487cc2558df646a262ffb8261585;hp=c12696b3010b332706d203faa7e16cad62433bca;hpb=813d37839b97960d38f10ea93d9c4a391c1c91a5;p=musl 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; }