[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: How to add custom per-thread data in Lua 5.2?
- From: Alexey Baskakov <loyso@...>
- Date: Sat, 6 Mar 2010 16:12:34 +1000
How to add custom per-thread data in Lua 5.2?
The only message I have found on this topic is:
Yes, I can setup a hash or put key/value pairs in the Registry.
But I need it to be very _fast_.
So, we have no per-thread fenv, no GLOBALS pseudo-index and
lua_replace trick for thread globals.
I would prefer to have something like light user-data which can be
obtained from lua state pointer.
With best regards,