[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [5.1.4] Most portable solution to "sleep"?
- From: Gilles Ganault <gilles.ganault@...>
- Date: Fri, 18 Feb 2011 13:55:45 +0100
Hello,
Now that I could create the text file, I need to have the script
pause for a few seconds before resuming.
I checked the archives for this list:
===========
"NEWBIE Question: LUA wait() function?"
http://thread.gmane.org/gmane.comp.lang.lua.general/46268/focus=46287
"SLEEP"
http://thread.gmane.org/gmane.comp.lang.lua.general/69686/focus=69693
===========
Since I cross-compile Lua on Ubuntu and run it on a uClinux appliance,
I need a portable, compact solution to pause a script.
Which solution would you recommend? Compiling Lua with a POSIX
library, such as luaposix? Using "socket.sleep(0.2)"? Other?
I was thinking of using those options in CFLAGS:
-DLUA_USE_POSIX -DLUA_USE_LINUX
Thank you.