[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: thread state and dynamically loadable library
- From: "D Burgess" <dburgess@...>
- Date: Tue, 5 Sep 2006 13:26:06 +1000
I think you have thought of most of the alternatives. I had a similar
problem and used lazy initialization which tests if the thread
LUA_GLOBALSINDEX is the same table as the main thread
LUA_GLOBALSINDEX, if they are the same I create a thread
globals table that is metatabled (__index) to the global table
of the main thread.
DB