[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [patch #8465] Added assertion to check result of the sys_th
From: |
Martin Velek |
Subject: |
[lwip-devel] [patch #8465] Added assertion to check result of the sys_thread_new() function |
Date: |
Mon, 19 May 2014 21:14:59 +0000 |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:29.0) Gecko/20100101 Firefox/29.0 |
URL:
<http://savannah.nongnu.org/patch/?8465>
Summary: Added assertion to check result of the
sys_thread_new() function
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: allew
Submitted on: Mon 19 May 2014 09:14:58 PM GMT
Category: None
Priority: 5 - Normal
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
_______________________________________________________
Details:
This patch adds LWIP_ASSERT() to check return value of the sys_thread_new()
function. If defined LWIP_NOASSERT the code remains untouched otherwise the
sys_thread_t thread_id variable is added to every function calling
sys_thread_new().
There were also added two functions/macros (sys.h) to check if the return
value is valid - sys_thread_valid and sys_thread_set_invalid.
This patch assumes the inability of creating slipif_loop_thread,
pppInputThread, tcpip_thread threads is a serious error.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Mon 19 May 2014 09:14:58 PM GMT Name:
0001-Added-assertion-to-check-result-of-the-sys_thread_ne.patch Size: 5kB
By: allew
<http://savannah.nongnu.org/patch/download.php?file_id=31403>
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/patch/?8465>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-devel] [patch #8465] Added assertion to check result of the sys_thread_new() function,
Martin Velek <=