tech-userlevel archive

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

Re: Lua and dlopen(3)



On 20/02/14 09:28, David Laight wrote:
>>  > As expected, my Lua extensions actually work if I load them with my
>>  > own custom build of Lua linked against libpthread.
>>  >
>>  > Furthermore, Lua from pkgsrc isn't linked against libpthread either. 
>>
>> Is Lua threaded? I was under the impression that it isn't.
> 
> Or rather, is Lua thread safe?

   The library functions are reentrant (everything lives in lua_State
contexts), but a single lua_State can't be used simultaneously among
multiple threads.

   /Jan


Attachment: signature.asc
Description: OpenPGP digital signature



Home | Main Index | Thread Index | Old Index