summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_inline_lock_posix.x
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_inline_lock_posix.x3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/eina/eina_inline_lock_posix.x b/src/lib/eina/eina_inline_lock_posix.x
index 2e5b038ea4..3d909296b0 100644
--- a/src/lib/eina/eina_inline_lock_posix.x
+++ b/src/lib/eina/eina_inline_lock_posix.x
@@ -608,10 +608,11 @@ eina_spinlock_take(Eina_Spinlock *spinlock)
608 { 608 {
609 if (errno == EBUSY) sched_yield(); 609 if (errno == EBUSY) sched_yield();
610 else if (errno == EDEADLK) return EINA_LOCK_DEADLOCK; 610 else if (errno == EDEADLK) return EINA_LOCK_DEADLOCK;
611 else return EINA_LOCK_FAIL;
611 } 612 }
612 } while (t != 0); 613 } while (t != 0);
613 614
614 return t ? EINA_LOCK_FAIL : EINA_LOCK_SUCCEED; 615 return EINA_LOCK_SUCCEED;
615#else 616#else
616 return eina_lock_take(spinlock); 617 return eina_lock_take(spinlock);
617#endif 618#endif