[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Threading headaches
- From: Cosmin Apreutesei <cosmin.apreutesei@...>
- Date: Sat, 7 Nov 2009 01:45:27 +0200
> 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.