Hooks, lalarm, and coroutines
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Hooks, lalarm, and coroutines
- From: Mark Hamburg <mhamburg@...>
- Date: 2007年6月25日 14:41:32 -0700
What is the relationship between hook procs and coroutines?
My read of the source suggests that existing hooks are propagated when
creating new coroutines, but if one sets a hook it only affects a particular
Lua state.
This would seem to mean that the alarm function won't actually run until
we're back executing the coroutine in which it was set. Is this a correct
reading?
Mark