[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Executing .lua scripts from C: approach to declare same variable names?
- From: Marc Balmer <marc@...>
- Date: Wed, 29 Nov 2023 11:59:04 +0100
> 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>