[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re[2]: Handling errors of modules
- From: "Nodir Temirhodzhaev" <tnodir@...>
- Date: Wed, 19 Nov 2003 13:41:07 +0300
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) {
lua_lock(L);
setthvalue(L->top, L1);
api_incr_top(L);
lua_unlock(L);
}
=========
lhf> or use an upvalue.
Hmm, I not yet clear understand about upvalues :(
Thanks to all