lua-users home
lua-l archive

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



> It sounds from your basic description that there is no need for direct communication/access between Lua code in different plugins, is that correct?  If so, then I would recommend simply instantiating a new lua_State for each plugin and adding the lua_State pointer to your rx_plugin structure.  That way each plugin is isolated.


You can take the idea even further: Run each Lua state in its own thread, so stuff can run in parallel…

> 
> Regards,
> Chris
> —
> Chris Smith <space.dandy@icloud.com>