summaryrefslogtreecommitdiff
path: root/pthread_spin_unlock.c
diff options
context:
space:
mode:
authorrpj <rpj>2011-07-02 06:35:21 +0000
committerrpj <rpj>2011-07-02 06:35:21 +0000
commitaac54e89d7945f3f4557067b1d4a1cd8853d369f (patch)
tree41f794bea892c1e01b679b127f6dcd0e683c9219 /pthread_spin_unlock.c
parente516576e75527fb763e800e61dd024461141ec14 (diff)
See the ChangeLogs
Diffstat (limited to 'pthread_spin_unlock.c')
-rw-r--r--pthread_spin_unlock.c3
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));
}