lua-users home
lua-l archive

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


I don't know if that's the right place to ask, but if anyone
knows the answer she is probably on this list.

The Lua hook in World of Warcraft is based on events. Now,
my question is:

a) Can I be sure, that my event handler is not called again
  before the last iteration did return?

or

b) Is there some kind of locking which I can use to ensure
  that myself? Adding something in C is no option, because
  this part is disabled in the WoW implementation. It would
  have to be a pure Lua 5.1 solution.

With 64 fps (which looks like the highest possible frame
rate), the OnUpdate handler would be called every 15.6 ms.
It shouldn't be that hard to write a function which takes
more than 15.6 ms to return.

Does anyone know or have an idea how I could figure that
out?

After reading http://lua-users.org/wiki/ThreadsTutorial
I think this might be a problem...


Sven