Reverse the logic of UP and SMP.
Submitted by: jasone
This commit is contained in:
parent
8a35283b49
commit
286b41104d
@ -104,7 +104,7 @@ _pthread_spin_lock(pthread_spinlock_t *lock)
|
||||
count = SPIN_COUNT;
|
||||
while ((ret = THR_UMUTEX_TRYLOCK(curthread, &lck->s_lock)) != 0) {
|
||||
while (lck->s_lock.m_owner) {
|
||||
if (_thr_is_smp) {
|
||||
if (!_thr_is_smp) {
|
||||
_pthread_yield();
|
||||
} else {
|
||||
CPU_SPINWAIT;
|
||||
|
Loading…
x
Reference in New Issue
Block a user