lwIP - A Lightweight TCP/IP stack - Bugs: bug #26121, Ability to retain per-thread...
You are not allowed to post comments on this tracker with your current authentication level.
bug #26121: Ability to retain per-thread socket error
Submitter: | Zhenwei Chu <blackfin> | ||
Submitted: | Wed 08 Apr 2009 07:59:59 PM UTC | ||
Category: | None | Severity: | 3 - Normal |
Item Group: | Change Request | Status: | Fixed |
Privacy: | Public | Assigned to: | goldsimon |
Open/Closed: | Closed | Planned Release: | None |
lwIP version: | 1.3.0 |
Wed 15 Apr 2009 02:33:37 PM UTC, comment #4: |
Simon Goldschmidt <goldsimon> |
Wed 15 Apr 2009 12:45:18 PM UTC, comment #3: Yes.Works for us. Thanks Simon. |
Srinivas Gollakota <gollakota> |
Thu 09 Apr 2009 02:55:25 PM UTC, comment #2: I'd be happy with Simon's suggestion. Zhenwei: would that meet your needs? |
Kieran Mansley <kieranm> |
Wed 08 Apr 2009 08:46:34 PM UTC, comment #1: A better way (and more lwip-like) would be to change
|
Simon Goldschmidt <goldsimon> |
Wed 08 Apr 2009 07:59:59 PM UTC, original submission:
In a multi-threaded lwIP application multiple threads can issue high level socket API calls. By default global errno is used to save the last error. Some operating systems allow thread local storage that is thread specific which can be used to store the error values. We have extended the sock_set_errno(sk,e) macro to set the thread specific error as below. The new set_thread_sock_err(e) sets the socket error in the thread local storage.
|
Zhenwei Chu <blackfin> |
No files currently attached
Depends on the following items: None found
Items that depend on this one: None found
There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.
Follow 3 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2009-04-15 | goldsimon | Status | None | Fixed | |
Assigned to | None | goldsimon | |||
Open/Closed | Open | Closed |
Powered by Savane 3.13-d3ae.
Corresponding source code
Checked in like in comment #1