lua-users home
lua-l archive

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


> Do you really need
> "thread-safe" builds of these libs when using each instance of the modules
> only from the Lua state that requir()ed it? Or am I just getting lucky?
>

AFAIK, a shared library can only be loaded once (i.e. have one global
state) per process. If only that weren't true, many stateful libs
would become thread-safe automatically and the Lua C API wouldn't need
a state argument.