diff options
Diffstat (limited to 'pthread_spin_unlock.c')
-rw-r--r-- | pthread_spin_unlock.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pthread_spin_unlock.c b/pthread_spin_unlock.c index 0e8add8..3a6932a 100644 --- a/pthread_spin_unlock.c +++ b/pthread_spin_unlock.c @@ -61,9 +61,8 @@ pthread_spin_unlock (pthread_spinlock_t * lock) (PTW32_INTERLOCKED_LONG) PTW32_SPIN_LOCKED)) { case PTW32_SPIN_LOCKED: - return 0; case PTW32_SPIN_UNLOCKED: - return EPERM; + return 0; case PTW32_SPIN_USE_MUTEX: return pthread_mutex_unlock (&(s->u.mutex)); } |