#ifndef LTTNG_RELAYD_H
#define LTTNG_RELAYD_H
-#define _LGPL_SOURCE
#include <limits.h>
#include <urcu.h>
-#include <urcu/wfqueue.h>
+#include <urcu/wfcqueue.h>
#include <common/hashtable/hashtable.h>
* Queue used to enqueue relay requests
*/
struct relay_conn_queue {
- struct cds_wfq_queue queue;
+ struct cds_wfcq_head head;
+ struct cds_wfcq_tail tail;
int32_t futex;
};
extern int thread_quit_pipe[2];
void lttng_relay_notify_ready(void);
+int lttng_relay_stop_threads(void);
#endif /* LTTNG_RELAYD_H */