mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-15 04:12:26 +02:00
MINOR: threads: Use __decl_hathreads to declare locks
This macro should be used to declare variables or struct members depending on the USE_THREAD compile option. It avoids the encapsulation of such declarations between #ifdef/#endif. It is used to declare all lock variables.
This commit is contained in:
committed by
Willy Tarreau
parent
f4cfcf9a26
commit
9dcf9b6f03
@@ -155,9 +155,7 @@ static THREAD_LOCAL struct sample_data static_sample_data;
|
||||
struct list pattern_reference = LIST_HEAD_INIT(pattern_reference);
|
||||
|
||||
static struct lru64_head *pat_lru_tree;
|
||||
#ifdef USE_THREAD
|
||||
HA_SPINLOCK_T pat_lru_tree_lock;
|
||||
#endif
|
||||
__decl_hathreads(HA_SPINLOCK_T pat_lru_tree_lock);
|
||||
static unsigned long long pat_lru_seed;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user