lua-users home
lua-l archive

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


> Maybe this kind of function could be added to the API?

Can't you simply use the registry for that? You can add the main
thread into the register (as a light userdata) when you create it;
later any thread gives you access to the (same) registry, wherein
you can get the main thread.

-- Roberto