CLEANUP: threads: remove a few needless includes of hathreads.h

A few files were including it while not needing it (anymore). Some
only required access to the atomic ops and got haproxy/atomic.h in
exchange. Others didn't need it at all. A significant number of
files still include it only for THREAD_LOCAL definition.
This commit is contained in:
Willy Tarreau 2020-05-28 17:00:53 +02:00
parent 9453ecd670
commit 5775d0964a
8 changed files with 3 additions and 9 deletions

View File

@ -1,7 +1,7 @@
#ifndef __XREF_H__
#define __XREF_H__
#include <common/hathreads.h>
#include <haproxy/atomic.h>
/* xref is used to create relation between two elements.
* Once an element is released, it breaks the relation. If the

View File

@ -22,8 +22,8 @@
#ifndef _PROTO_ACTIVITY_H
#define _PROTO_ACTIVITY_H
#include <haproxy/atomic.h>
#include <haproxy/api.h>
#include <common/hathreads.h>
#include <common/time.h>
#include <types/activity.h>
#include <proto/freq_ctr.h>

View File

@ -22,10 +22,10 @@
#ifndef _PROTO_FREQ_CTR_H
#define _PROTO_FREQ_CTR_H
#include <haproxy/atomic.h>
#include <haproxy/api.h>
#include <common/standard.h>
#include <common/time.h>
#include <common/hathreads.h>
#include <types/freq_ctr.h>

View File

@ -23,7 +23,6 @@
#define _TYPES_FD_H
#include <haproxy/api-t.h>
#include <common/hathreads.h>
#include <import/ist.h>
#include <types/port_range.h>

View File

@ -24,7 +24,6 @@
#include <haproxy/api-t.h>
#include <haproxy/list-t.h>
#include <common/hathreads.h>
#include <types/server.h>

View File

@ -17,7 +17,6 @@
#include <common/htx.h>
#include <common/namespace.h>
#include <common/standard.h>
#include <common/hathreads.h>
#include <types/filters.h>
#include <types/http_ana.h>

View File

@ -13,7 +13,6 @@
#include <ctype.h>
#include <haproxy/api.h>
#include <common/hathreads.h>
#include <common/htx.h>
#include <common/standard.h>
#include <common/time.h>

View File

@ -13,8 +13,6 @@
#include <signal.h>
#include <string.h>
#include <common/hathreads.h>
#include <proto/signal.h>
#include <proto/log.h>
#include <proto/task.h>