Re: lua_newstate
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: lua_newstate
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2017年12月28日 10:10:34 -0200
> + pthread_mutex_t lock;
> } global_State;
Note that you don't need to change this struct to support OS threads.
Lua states contain an array of size LUA_EXTRASPACE that can be used
to store additional data. See also lua_getextraspace. The macros
luai_userstate* can be defined to manage OS threads.
Search the archives for examples. Note that LUA_EXTRASPACE was spelled
LUAI_EXTRASPACE before 5.3.
- References:
- lua_newstate, Gregg Reynolds
- Re: lua_newstate, Luiz Henrique de Figueiredo
- Re: lua_newstate, Gregg Reynolds
- Re: lua_newstate, Sean Conner
- Re: lua_newstate, Gregg Reynolds
- Re: lua_newstate, Sean Conner
- Re: lua_newstate, Viacheslav Usov
- Re: lua_newstate, Javier Guerra Giraldez
- Re: lua_newstate, Viacheslav Usov
- Re: lua_newstate, Sean Conner