diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 01:19:22 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2018-03-28 01:19:22 +0200 |
commit | 4b90d3f6146154638ffbe227da48e9af0dd2a803 (patch) | |
tree | 7e034f416b4b7e95a76b99418df21e64e795e22a /sysdeps/generic/pt-rwlock-unlock.c | |
parent | b1f57fa0cf5515263bebcefe1044995ebaf9a1f3 (diff) |
Fix coding style
Diffstat (limited to 'sysdeps/generic/pt-rwlock-unlock.c')
-rw-r--r-- | sysdeps/generic/pt-rwlock-unlock.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/generic/pt-rwlock-unlock.c b/sysdeps/generic/pt-rwlock-unlock.c index 32446e8..9fd1aa8 100644 --- a/sysdeps/generic/pt-rwlock-unlock.c +++ b/sysdeps/generic/pt-rwlock-unlock.c @@ -35,7 +35,7 @@ __pthread_rwlock_unlock (pthread_rwlock_t *rwlock) if (rwlock->__readers > 1) /* There are other readers. */ { - rwlock->__readers --; + rwlock->__readers--; __pthread_spin_unlock (&rwlock->__lock); return 0; } @@ -54,7 +54,7 @@ __pthread_rwlock_unlock (pthread_rwlock_t *rwlock) __pthread_dequeue (wakeup); /* We do not unlock RWLOCK->held: we are transferring the ownership - to the thread that we are waking up. */ + to the thread that we are waking up. */ __pthread_spin_unlock (&rwlock->__lock); __pthread_wakeup (wakeup); @@ -67,21 +67,21 @@ __pthread_rwlock_unlock (pthread_rwlock_t *rwlock) unsigned n = 0; __pthread_queue_iterate (rwlock->__readerqueue, wakeup) - n ++; + n++; { struct __pthread *wakeups[n]; unsigned i = 0; __pthread_dequeuing_iterate (rwlock->__readerqueue, wakeup) - wakeups[i ++] = wakeup; + wakeups[i++] = wakeup; rwlock->__readers += n; rwlock->__readerqueue = 0; __pthread_spin_unlock (&rwlock->__lock); - for (i = 0; i < n; i ++) + for (i = 0; i < n; i++) __pthread_wakeup (wakeups[i]); } |