]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: thread: fix fantaisist indentation of thread_harmless_till_end()
authorWilly Tarreau <w@1wt.eu>
Wed, 4 Aug 2021 08:33:57 +0000 (10:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 4 Aug 2021 12:49:36 +0000 (14:49 +0200)
Probably due to a copy-paste, there were two indent levels in this function
since its introduction in 1.9 by commit 60b639ccb ("MEDIUM: hathreads:
implement a more flexible rendez-vous point"). Let's fix this.

src/thread.c

index bc655bd501508864fee70c5b09433f380a2fc3f5..a8b231aca65ae35d6a28047edc9eb07efd17dd1a 100644 (file)
@@ -56,10 +56,10 @@ struct lock_stat lock_stats[LOCK_LABELS];
  */
 void thread_harmless_till_end()
 {
-               _HA_ATOMIC_OR(&threads_harmless_mask, tid_bit);
-               while (threads_want_rdv_mask & all_threads_mask & ~tid_bit) {
-                       ha_thread_relax();
-               }
+       _HA_ATOMIC_OR(&threads_harmless_mask, tid_bit);
+       while (threads_want_rdv_mask & all_threads_mask & ~tid_bit) {
+               ha_thread_relax();
+       }
 }
 
 /* Isolates the current thread : request the ability to work while all other