lua-users home
lua-l archive

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

> Does that mean in 5.2, I can't have any per-thread data? It has to
> be global to a Lua state or private to a function?

Note that in 5.1 the built-in per-thread data is not very useful, as you
cannot access it from Lua. (That is the main reason why we are removing

In C, it is not difficult to use the thread itself as a key to store
per-thread data in the registry, if necessary.

-- Roberto