[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Is it valid to ref a function/table/userdata in a coroutine?
- From: Doug Currie <doug.currie@...>
- Date: Wed, 1 Dec 2010 09:43:14 -0500
On Dec 1, 2010, at 12:51 AM, John Labenski wrote:
> On one hand, perhaps it is as simple as not allowing any C++ callbacks
> to be created from within a coroutine since this means that the C++
> callback may try to run a function it refed in the registry in a
> suspended or worse yet, a dead callback. Both of these are not
> allowed, right?
Well, callbacks to suspended threads are OK with certain caveats; see:
http://lua-users.org/lists/lua-l/2010-02/msg00447.html
e