mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02:00
MINOR: global: add proc_mask() and thread_mask()
These two functions return either all_{proc,threads}_mask, or the argument. This is used to default to all_proc_mask or all_threads_mask when not set on bind_conf or proxies.
This commit is contained in:
parent
a38a7175b1
commit
2415727a00
@ -239,6 +239,18 @@ static inline int already_warned(unsigned int warning)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* returns a mask if set, otherwise all_proc_mask */
|
||||
static inline unsigned long proc_mask(unsigned long 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;
|
||||
}
|
||||
|
||||
void deinit(void);
|
||||
void hap_register_build_opts(const char *str, int must_free);
|
||||
void hap_register_post_check(int (*fct)());
|
||||
|
Loading…
Reference in New Issue
Block a user