[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lua-l
Subject:    Re: Hooks, lalarm, and coroutines
From:       roberto () inf ! puc-rio ! br (Roberto Ierusalimschy)
Date:       2007-06-26 0:15:34
Message-ID: 20070626001534.GA11667 () inf ! puc-rio ! br
[Download RAW message or body]

> 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.

Right.


> 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?

Yes.

-- Roberto
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic