mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
CLEANUP: thread: fix fantaisist indentation of thread_harmless_till_end()
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.
This commit is contained in:
parent
08be72b827
commit
286363be08
1 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue