lua-users home
lua-l archive

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

lhf> change the table of globals of each thread,
No, can be union.

RLake> Create a weak-keyed table whose keys are the threads.
lhf> use a different key in the registry (for instance, the thread itself),

How push thread to stack?
I think, needed add to lapi.c:
LUA_API void lua_pushthread (lua_State *L, lua_State *L1) {
  setthvalue(L->top, L1);

lhf> or use an upvalue.
Hmm, I not yet clear understand about upvalues :(

Thanks to all