summaryrefslogtreecommitdiff
path: root/lib/thread.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/thread.h')
-rw-r--r--lib/thread.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/thread.h b/lib/thread.h
index 34adcc4d09..6fb6ad7c9d 100644
--- a/lib/thread.h
+++ b/lib/thread.h
@@ -24,6 +24,7 @@
#include <zebra.h>
#include "monotime.h"
+#include <pthread.h>
struct rusage_t
{
@@ -50,7 +51,7 @@ struct pqueue;
*/
typedef fd_set thread_fd_set;
-#if defined(HAVE_POLL)
+#if defined(HAVE_POLL_CALL)
#include <poll.h>
struct fd_handler
{
@@ -84,6 +85,10 @@ struct thread_master
int fd_limit;
struct fd_handler handler;
unsigned long alloc;
+ long selectpoll_timeout;
+ bool spin;
+ bool handle_signals;
+ pthread_mutex_t mtx;
};
typedef unsigned char thread_type;
@@ -110,6 +115,7 @@ struct thread
const char *funcname;
const char *schedfrom;
int schedfrom_line;
+ pthread_mutex_t mtx;
};
struct cpu_thread_history