[syslinux:lwip] core: thread: add a "timeouts" pointer to the thread structure

syslinux-bot for H. Peter Anvin hpa at zytor.com
Fri Apr 22 20:05:06 PDT 2011


Commit-ID:  5cf65b7ca34bd3638603b16b4ef2cef1345354a5
Gitweb:     http://syslinux.zytor.com/commit/5cf65b7ca34bd3638603b16b4ef2cef1345354a5
Author:     H. Peter Anvin <hpa at zytor.com>
AuthorDate: Wed, 9 Sep 2009 22:24:55 -0700
Committer:  Eric W. Biederman <ebiederm at xmission.com>
CommitDate: Sat, 9 Apr 2011 18:27:06 -0700

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 at zytor.com>


---
 core/include/thread.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/core/include/thread.h b/core/include/thread.h
index e644b9f..f1212eb 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;
 };
 



More information about the Syslinux-commits mailing list