mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-08 04:18:58 +00:00
BUILD/MINOR: threads: always export thread_sync_io_handler()
Otherwise it doesn't build again without threads.
This commit is contained in:
parent
3041fcc2fd
commit
e96e61cadc
@ -21,6 +21,11 @@
|
||||
THREAD_LOCAL unsigned int tid = 0;
|
||||
THREAD_LOCAL unsigned long tid_bit = (1UL << 0);
|
||||
|
||||
/* Dummy I/O handler used by the sync pipe.*/
|
||||
void thread_sync_io_handler(int fd)
|
||||
{
|
||||
}
|
||||
|
||||
#ifdef USE_THREAD
|
||||
|
||||
static HA_SPINLOCK_T sync_lock;
|
||||
@ -32,11 +37,6 @@ static unsigned long all_threads_mask = 0;
|
||||
struct lock_stat lock_stats[LOCK_LABELS];
|
||||
#endif
|
||||
|
||||
/* Dummy I/O handler used by the sync pipe.*/
|
||||
void thread_sync_io_handler(int fd)
|
||||
{
|
||||
}
|
||||
|
||||
/* Initializes the sync point. It creates a pipe used by threads to wakup all
|
||||
* others when a sync is requested. It also initialize the mask of all create
|
||||
* threads. It returns 0 on success and -1 if an error occurred.
|
||||
|
Loading…
Reference in New Issue
Block a user