[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Lua C API, coroutines and reference counting
- From: Konstantin Osipov <kostja.osipov@...>
- Date: Fri, 13 Jul 2012 18:15:38 +0400
Hello,
What happens if the only reference to a coroutine is stored
in its own stack? Is it going to be garbage collected or not?
struct lua_State *child_L = lua_newthread(L);
lua_xmove(L, child_L, 1);
...
--
http://tarantool.org - an efficient, extensible in-memory data store