Re: Copying data between separate Lua states
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Copying data between separate Lua states
- From: Peng Zhicheng <pengzhicheng1986@...>
- Date: 2011年11月15日 23:53:32 +0800
I'm not sure whether you mean native OS threads or Lua coroutines
here by `producer thread' and `consumer threads'.
If you used Lua coroutines, I think it should be OK to simply use
the lua_xmove API.
Or else, you should do some synchronization in C. And I found the
Lanes[1] package would always be helpful in such cases.
-----------------
[1]
http://kotisivu.dnainternet.net/askok/bin/lanes/