lua-users home
lua-l archive

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


> However I'm not sure if this is the best solution. Debuggers
> and Profilers need to be aware of thread creation anyway. So I
> suggest to add LUA_HOOKTHREAD and call it from luaE_newthread()
> and luaE_freethread() (with the just-created or the to-be-deleted
> lua_State).

We should rethink the whole relationship between hooks and
threads. Maybe debuggers and profilers also need to be aware of
resume/yields and who is the running thread. And given all that, maybe
we do not need independent hooks for each thread.

-- Roberto