lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #7252] Create sys_thread_new_ex()


From: David Empson
Subject: [lwip-devel] [task #7252] Create sys_thread_new_ex()
Date: Tue, 28 Aug 2007 22:35:59 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6

Follow-up Comment #2, task #7252 (project lwip):

I like this idea. It will map nicely onto my home grown OS's thread creation
calls, which expect a process name and stack size.

Stack sizes are a little tricky, as they can vary wildly between platforms.
Many platforms would need to specify values in lwipopts.h, and they should at
least be listed there in case a new user doesn't notice them in opt.h.

Another approach would be to use representative but arbitrary values in
opt.h, and get the implementation of sys_thread_new_ex() to scale them for the
platform. This doesn't work well because stack sizes might not scale linearly
between two platforms, due to issues like function call depth (more stack
frames for one thread vs more local variables for another) and varying stack
frame sizes for simple vs complex functions.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?7252>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

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