From 01fdf7ca787ee0cc82a004c4c01fc714b23f4813 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Wed, 9 Sep 2009 22:24:55 -0700 Subject: core: thread: add a "timeouts" pointer to the thread structure Add a "timeouts" pointer to the thread structure; this is a private per-thread pointer for the benefit of lwIP. This is ad hoc, but a lot easier than implementing TLS. Signed-off-by: H. Peter Anvin --- core/include/thread.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/include/thread.h b/core/include/thread.h index c8e7f3f1..9171eaab 100644 --- a/core/include/thread.h +++ b/core/include/thread.h @@ -20,10 +20,13 @@ struct thread_block { bool timed_out; }; +struct sys_timeouts; + struct thread { void *esp; /* Must be first; stack pointer */ struct thread_list list; struct thread_block *blocked; + struct sys_timeouts *timeouts; /* For the benefit of lwIP */ int prio; }; -- cgit v1.2.1