X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_spin_lock.c;h=df575f0858681b76afb8895478778b67e8ca2a7b;hp=0ab3d64fdaed9b831c08bf90ed32e571ab2c400a;hb=b6218764ebca59ff5dae0e87b696188c8de0119e;hpb=4106cdcd2de34bf3b9839e042344d92eae887ecb diff --git a/src/thread/pthread_spin_lock.c b/src/thread/pthread_spin_lock.c index 0ab3d64f..df575f08 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 (a_xchg(s, 1)) a_spin(); + while (a_swap(s, 1)) a_spin(); return 0; }