xopxe / lumen

Lua Multitasking Environment.
Other
153 stars 23 forks source link

Sleep for Windows #10

Open andrewstarks opened 10 years ago

andrewstarks commented 10 years ago

Added check for windows and sleep method for it, if found.

Also, I have a tiny C library that just does sleep. It also works for unix/mac/windows and support usleep, as well as sleep. I added some commented-out code that you can add in, if you wish to support it. I thought it was presumptuous of me to do so. :)

xopxe commented 10 years ago

Cant merge this from the web interface (claims some conflict), will look into it later

andrewstarks commented 10 years ago

Yeah. This is because I included the idle code in some other commit. Sorry about that. I'll sync my master with yours, remove idle.lua and then merge the branch into it.

andrewstarks commented 10 years ago

Yeah. I tried to do this in some sort of "right way." In short, keep the changes in idle.lua that are in this commit. As I said, I added the old file to every commit, by accident. :(

srdgame commented 10 years ago

ok, I found the bug creator here :8ball: