summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2009-09-09 22:24:55 -0700
committerH. Peter Anvin <hpa@zytor.com>2009-09-09 22:24:55 -0700
commit01fdf7ca787ee0cc82a004c4c01fc714b23f4813 (patch)
treeaa9b20a7af821a67209e0a17cdbd61ab93a3c2ca
parent9bc2d7b487cc9cb658a8e3785c67bab6bd20cfe5 (diff)
downloadsyslinux-01fdf7ca787ee0cc82a004c4c01fc714b23f4813.tar.gz
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 <hpa@zytor.com>
-rw-r--r--core/include/thread.h3
1 files changed, 3 insertions, 0 deletions
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;
};