summaryrefslogtreecommitdiff
path: root/lib/thread.h
diff options
context:
space:
mode:
authorChristian Franke <chris@opensourcerouting.org>2015-11-10 18:04:41 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-03-29 20:26:26 -0400
commit6ac446878fe25f3f34f856c3daff4e4021b8b70c (patch)
tree1a425a6048e9221e43ea38259f63cfd97b150110 /lib/thread.h
parentf3d2b2813d0b4b710c055aa71f487b290e2a91db (diff)
lib: add function to get precise remaining time of timer thread
Signed-off-by: Christian Franke <chris@opensourcerouting.org> Acked-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/thread.h')
-rw-r--r--lib/thread.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/thread.h b/lib/thread.h
index c8c8c19323..4ca1e3ce04 100644
--- a/lib/thread.h
+++ b/lib/thread.h
@@ -235,6 +235,7 @@ extern unsigned int thread_cancel_event (struct thread_master *, void *);
extern struct thread *thread_fetch (struct thread_master *, struct thread *);
extern void thread_call (struct thread *);
extern unsigned long thread_timer_remain_second (struct thread *);
+extern struct timeval thread_timer_remain(struct thread*);
extern int thread_should_yield (struct thread *);
extern unsigned long timeval_elapsed (struct timeval a, struct timeval b);
/* set yield time for thread */