lua-users home
lua-l archive

Re: Is having lua_State per thread safe?

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


> > - Different lua_States created with calls to lua_newstate (or
> > luaL_newsate) do not share any mutable data.
> >
> 
> However, some functions from the C runtime do share mutable data. For
> instance, gmtime.
Yes :-( (Well, for this particular case Lua 5.2 uses gmtime_r when
possible. But some other C functions still have problems.)
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /