mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-18 13:26:33 +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
@@ -52,9 +52,7 @@ extern struct pool_head *pool2_buffer;
|
||||
extern struct buffer buf_empty;
|
||||
extern struct buffer buf_wanted;
|
||||
extern struct list buffer_wq;
|
||||
#ifdef USE_THREAD
|
||||
extern HA_SPINLOCK_T buffer_wq_lock;
|
||||
#endif
|
||||
__decl_hathreads(HA_SPINLOCK_T buffer_wq_lock);
|
||||
|
||||
int init_buffer();
|
||||
void deinit_buffer();
|
||||
|
||||
Reference in New Issue
Block a user