[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Fun with serializing Lua functions (was Re: Sharing userdata among stats.)
- From: Sean Conner <sean@...>
- Date: Sat, 1 Jul 2017 17:48:18 -0400
It was thus said that the Great Laurent FAILLIE once stated:
>
> I did good an nice thing with my application (I will publish a video of my
> dashboard soon :) ), but I think I reach the limit of Lua in a
> multithreaded environment :(
Have you thought of recompiling liblua with an implementation for
lua_lock() and lua_unlock()? That way, you can have a single Lua state that
can be shared among threads. And Lua is small enough that you can embed the
source within the project itself.
-spc