[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Re: [lwip] sys_timeout()
From: |
Peter Graf |
Subject: |
[lwip-users] Re: [lwip] sys_timeout() |
Date: |
Wed, 08 Jan 2003 23:05:56 -0000 |
Hi!
>> Another way to make things easier to understand might be to pass a pointer
>> to the data structures used by the timeout implementation, when calling
>> sys_mbox_fetch() or sys_sem_wait().
>
>No, that would make the code that uses the OS emulation layer unnecessary
>complex. I think it is more appropriate for the OS emulation layer to keep
>track of things such as threads, timers and IPC mechanisms, and not the
>application.
You're right. A little documentation someday will do.
Thanks to your explanation of the expected behaviour of sys_timeout() I've
been able to do an initial port to SMSQ/E the last weekend. As this
multitasking OS is based on a non-semaphore concept, I had to write my own
OS extension for semaphore support with timeout, in assembler. Ugly work. I
still seem to have bugs in there.
>The plans for the sys_arch layer in 0.5 is that the sys_mbox_fetch() and
>sys_sem_wait() will take an additional argument that specifies the maximum
>time to wait for the mailbox or the semaphore. The timer scheduling code
>would then be moved out of the sys_arch file and into a generic sys.c file.
Very good idea. I don't know any OS which directly supports your kind of
timeout scheduling, so it must be implemented especially for lwIP anyway. I
don't see any additional performance cost.
>Anyway, thanks for your input and I am glad that the info helped!
Thanks to YOU!
Peter
[This message was sent through the lwip discussion list.]
- [lwip-users] Re: [lwip] sys_timeout(), Adam Dunkels, 2003/01/08
- [lwip-users] Re: [lwip] sys_timeout(), Adam Dunkels, 2003/01/08
- [lwip-users] Re: [lwip] sys_timeout(), Peter Graf, 2003/01/08
- [lwip-users] Re: [lwip] sys_timeout(), Adam Dunkels, 2003/01/08
- [lwip-users] Re: [lwip] sys_timeout(), Adam Dunkels, 2003/01/08
- [lwip-users] Re: [lwip] sys_timeout(),
Peter Graf <=
- [lwip-users] Re: [lwip] sys_timeout(), Amol Deshmukh, 2003/01/08
- [lwip-users] Re: [lwip] sys_timeout(), Peter Graf, 2003/01/08
- [lwip-users] Re: [lwip] sys_timeout(), Peter Graf, 2003/01/09
- [lwip-users] Re: [lwip] sys_timeout(), Adam Dunkels, 2003/01/09
- [lwip-users] Re: [lwip] sys_timeout(), Adam Dunkels, 2003/01/09