X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Fthread%2Fpthread_spin_lock.c;h=0ab3d64fdaed9b831c08bf90ed32e571ab2c400a;hb=28af39fe427ffec8b836f4f30450ffc30b03e5c4;hp=59fa6ea89ad2e322f0071724c7ab09275a4a3258;hpb=117581ca69ec2a9c341390eed353646b47a512df;p=musl diff --git a/src/thread/pthread_spin_lock.c b/src/thread/pthread_spin_lock.c index 59fa6ea8..0ab3d64f 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)); + while (a_xchg(s, 1)) a_spin(); return 0; }