[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [task #10421] adding return value to tcpip_init()
From: |
Martin Velek |
Subject: |
[lwip-devel] [task #10421] adding return value to tcpip_init() |
Date: |
Tue, 25 May 2010 12:24:49 +0000 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; cs; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR 3.5.30729) |
URL:
<http://savannah.nongnu.org/task/?10421>
Summary: adding return value to tcpip_init()
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: allew
Submitted on: Tue 25 May 2010 12:24:48 PM GMT
Category: None
Should Start On: Tue 25 May 2010 12:00:00 AM GMT
Should be Finished on: Fri 24 Dec 2010 12:00:00 AM GMT
Priority: 5 - Normal
Status: None
Privacy: Public
Percent Complete: 0%
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
Effort: 0.00
_______________________________________________________
Details:
During the lwip initialisation in a RTOS environment is called function
tcpip_init() that creates tcp-ip task.
Unfortunately the return type is "void" so there is no information to caller
that the task was created.
I would suggest set the return value to "sys_thread_t" because the function
that really creates task(sys_thread_new) returns "sys_thread_t".
The prototype:
sys_thread_t tcpip_init(void (* tcpip_init_done)(void *), void *arg);
The body:
sys_thread_t
tcpip_init(void (* initfunc)(void *), void *arg){
.....
return sys_thread_new(TCPIP_THREAD_NAME, tcpip_thread, NULL,
TCPIP_THREAD_STACKSIZE, TCPIP_THREAD_PRIO);
}
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/task/?10421>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [task #10421] adding return value to tcpip_init(),
Martin Velek <=