[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Idea for an event loop library
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 10 May 2012 08:27:57 -0300
> So if a person wishes to actually do some heavy computation, they need
> to understand that they must let the system do some work, with a
> sleep(0) or something similar. (this is something that early Windows
> programmers needed to know, before truly preemptive threading)
Likewise in the Macintosh Toolbox before Mac OS X. Every time the program
called the Event Toolbox the system would pause the program. You could
do something similar here by wrapping a few Lua standard functions such
as those that do I/O.