lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] Thread awareness


From: Jonathan Larmour
Subject: Re: [lwip-users] Thread awareness
Date: Wed, 26 Nov 2008 14:48:42 +0000
User-agent: Thunderbird 1.5.0.12 (X11/20070530)

Kieran Mansley wrote:
>>
>> 1. Can I, for instance, have multiple threads managing their own sockets?
>> i.e. can I do a http server as a thread, creating/using/closing while I
>> have another thread doing similar stuff on another port?
>>
>> 2. I guess that each socket in it self is not threadsafe; i.e. I cannot
>> create a listen thread, and another writing thread using the same socket.
>> ( this would surprise me, but I thought I should ask ;-) )
> 
> 2 definitely won't work.  1 might work.  Safest would be to direct all
> socket access through a single thread.

I think if 1 didn't work we'd call that a bug which needs to be fixed.

Jifl
-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine




reply via email to

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