mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-12 06:24:56 +00:00
REORG: threads: move all_thread_mask() to thread.h
It was declared in global.h, forcing plenty of source files to include it only for this while it's only based on definitions from thread.h.
This commit is contained in:
parent
cfc4f24d80
commit
29c460bc07
@ -89,12 +89,6 @@ static inline unsigned long proc_mask(unsigned long mask)
|
|||||||
return mask ? mask : all_proc_mask;
|
return mask ? mask : all_proc_mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* returns a mask if set, otherwise all_threads_mask */
|
|
||||||
static inline unsigned long thread_mask(unsigned long mask)
|
|
||||||
{
|
|
||||||
return mask ? mask : all_threads_mask;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* handle 'tainted' status */
|
/* handle 'tainted' status */
|
||||||
enum tainted_flags {
|
enum tainted_flags {
|
||||||
TAINTED_CONFIG_EXP_KW_DECLARED = 0x1,
|
TAINTED_CONFIG_EXP_KW_DECLARED = 0x1,
|
||||||
|
@ -969,4 +969,10 @@ static inline void __spin_unlock(enum lock_label lbl, struct ha_spinlock *l,
|
|||||||
|
|
||||||
#endif /* USE_THREAD */
|
#endif /* USE_THREAD */
|
||||||
|
|
||||||
|
/* returns a mask if set, otherwise all_threads_mask */
|
||||||
|
static inline unsigned long thread_mask(unsigned long mask)
|
||||||
|
{
|
||||||
|
return mask ? mask : all_threads_mask;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* _HAPROXY_THREAD_H */
|
#endif /* _HAPROXY_THREAD_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user