lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] sys_msleep


From: Tyrel Newton
Subject: [lwip-users] sys_msleep
Date: Fri, 21 May 2010 13:04:31 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

In sys.h, there is a #ifndef guard around the sys_msleep declaration. Presumably, this is so that a sys_arch.h implementation could provide a macro for sys_msleep, i.e. a macro against a similarly named "task delay" function. If this indeed the case, there should be a similar #ifndef guard in sys.c so the built-in function is only defined if it needs to be. Otherwise, it might be prudent to just ditch the sys.c file altogether since I think most operating systems provide "sleep" functions if they also provide semaphore waiting functions. Then you wouldn't need the somewhat kludgy implementation of sys_msleep in sys.c.

Tyrel



reply via email to

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