X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fthread%2Fpthread_spin_lock.c;h=59fa6ea89ad2e322f0071724c7ab09275a4a3258;hp=9e43f47539d6dad5661936900ffb20e0c9c36b50;hb=117581ca69ec2a9c341390eed353646b47a512df;hpb=ef839c73d7ad51249550675defdcb24349e6ffd0 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; }