[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] conn->sem
From: |
Adam Dunkels |
Subject: |
[lwip-users] Re: [lwip] conn->sem |
Date: |
Wed, 08 Jan 2003 22:28:48 -0000 |
Hi!
On Tuesday 23 April 2002 08.06, Mumtaz Ahmad wrote:
> Inside netconn_write conn->sem is always deleted after sending the data
> and recreated when the application requests another chunk to be transmitted
> . It sounds an extra overhead since semaphore creation takes some time .We
> can always delay deleting conn->sem until the whole data is transmitted.
That sounds like a good idea. The code was written under the assumption that
semaphore creation is quite quick - perhaps the sys_sem_new() could be
changed to cache semaphores in some way to make creation quicker?
/adam
--
Adam Dunkels <address@hidden>
http://www.sics.se/~adam
[This message was sent through the lwip discussion list.]
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [lwip-users] Re: [lwip] conn->sem,
Adam Dunkels <=