lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] sys_msleep() implementation


From: Piero 74
Subject: Re: [lwip-users] sys_msleep() implementation
Date: Tue, 6 May 2008 13:00:25 +0200

Hi marko

the comment of this function said:

 * Sleep for some ms. Timeouts are processed while sleeping.
 *
 
(and you can see how work in the lwip code)
Lwip needs to checks its timeout list during sleep operation, so, you cannot block it using RTOS delay

Someone can confirm my answer?

Bye, Piero.

2008/5/6 Marko Panger <address@hidden>:
Hi all,

I was looking at the implementation of sys_msleep() function in sys.c. As per default in crates
a semaphore and then pends on it for the timeout value. Could I redefine this function in sys_arch.c
to better suit my RTOS or is there any particular reason for such implementation ?

For example I would implement it as:

void sys_msleep(u32_t ms) {
  TSK_Sleep(ms);   }

Any thoughts ?

Thanks,
Marko



_______________________________________________
lwip-users mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/lwip-users


reply via email to

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