lua-users home
lua-l archive

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


Is it possible separate locking of lua state and GC operations, if I guarantee that each OS thread has own lua-thread, which can't modify global table (_G) and rare operations on main lua-state are enclosed to mutex?
Maybe lua_gclock/lua_gcunlock.
Now I set GC threshold to maximum and check GC when count of worker-threads = 0.
(This necessary for lua/isapi)