lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] Why use of globals in tcp_in.c


From: jack W
Subject: Re: [lwip-users] Why use of globals in tcp_in.c
Date: Thu, 2 Dec 2004 10:04:30 +0800

 hi
if you want to use multi_threads ,you must use the tcpip_thread and use the tcpip_thread(void *arg) in the file tcpip.c as the receive function, and tcpip_init() to establish a thread(task).
 
 
 
Hi, my first post, so please forgive stupid questions, etc.
 
I am running lwip 1.0 in a multi-threaded enviroment and see that there are lots of globals being used in tcp_in.c.  I don't see how this can work.  I see nothing to prevent my receive task from calling ip_input() and, hence, tcp_input() reentrantly.  Please tell me what I am missing.  Am I supposed to make all calls to ip_input() atomic across receives?  If so, are there other not-so-obvious things I need to be doing atomically?
 
Thanks,
 
Scott
 

= = = = = = = = = = = = = = = = = = = = = =

        致
礼!

 
              jack W
              address@hidden
               2004-12-02
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]