[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua registry, environment, and threads.
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 6 Jan 2010 15:03:07 -0200
> 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
it).
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
- Follow-Ups:
- Re: Lua registry, environment, and threads., Jerome Vuarand
- Re: Lua registry, environment, and threads., Leo Razoumov
- Re: Lua registry, environment, and threads., David Burgess
- Re: Lua registry, environment, and threads., Doug Currie
- Re: Lua registry, environment, and threads., Mark Hamburg
- References:
- Lua registry, environment, and threads., Christian Tellefsen
- Re: Lua registry, environment, and threads., Patrick Donnelly
- Re: Lua registry, environment, and threads., Roberto Ierusalimschy
- Re: Lua registry, environment, and threads., Christian Tellefsen