summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/thread.c10
-rw-r--r--lib/thread.h6
2 files changed, 10 insertions, 6 deletions
diff --git a/lib/thread.c b/lib/thread.c
index c140c7600c..761edcafd4 100644
--- a/lib/thread.c
+++ b/lib/thread.c
@@ -45,6 +45,16 @@ DEFINE_MTYPE_STATIC(LIB, THREAD_STATS, "Thread stats")
DECLARE_LIST(thread_list, struct thread, threaditem)
+struct cancel_req {
+ int flags;
+ struct thread *thread;
+ void *eventobj;
+ struct thread **threadref;
+};
+
+/* Flags for task cancellation */
+#define THREAD_CANCEL_FLAG_READY 0x01
+
static int thread_timer_cmp(const struct thread *a, const struct thread *b)
{
if (a->u.sands.tv_sec < b->u.sands.tv_sec)
diff --git a/lib/thread.h b/lib/thread.h
index 6b510fc4c9..b30dd9a727 100644
--- a/lib/thread.h
+++ b/lib/thread.h
@@ -61,12 +61,6 @@ struct fd_handler {
nfds_t copycount;
};
-struct cancel_req {
- struct thread *thread;
- void *eventobj;
- struct thread **threadref;
-};
-
struct xref_threadsched {
struct xref xref;