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-destroy-specific.c | |
parent | b1f57fa0cf5515263bebcefe1044995ebaf9a1f3 (diff) |
Fix coding style
Diffstat (limited to 'sysdeps/generic/pt-destroy-specific.c')
-rw-r--r-- | sysdeps/generic/pt-destroy-specific.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/generic/pt-destroy-specific.c b/sysdeps/generic/pt-destroy-specific.c index 60332b5..fd1b427 100644 --- a/sysdeps/generic/pt-destroy-specific.c +++ b/sysdeps/generic/pt-destroy-specific.c @@ -28,7 +28,7 @@ __pthread_destroy_specific (struct __pthread *thread) int seen_one; /* Check if there is any thread specific data. */ - if (! thread->thread_specifics) + if (!thread->thread_specifics) return; __pthread_key_lock_ready (); @@ -40,7 +40,8 @@ __pthread_destroy_specific (struct __pthread *thread) __pthread_mutex_lock (&__pthread_key_lock); - for (i = 0; i < __pthread_key_count && i < thread->thread_specifics_size; i ++) + for (i = 0; i < __pthread_key_count && i < thread->thread_specifics_size; + i++) { void *value; @@ -62,11 +63,11 @@ __pthread_destroy_specific (struct __pthread *thread) __pthread_mutex_unlock (&__pthread_key_lock); - if (! seen_one) + if (!seen_one) break; /* This may take a very long time. Let those blocking on - pthread_key_create or pthread_key_delete make progress. */ + pthread_key_create or pthread_key_delete make progress. */ sched_yield (); } |