lua-users home
lua-l archive

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


I needed a C++ coroutine manager, and one of the beneficial side
effects was that it was easy to add support for go style channel based
patterns, this is the result test where channels are implemented on
top of the coroutinemanager class:

https://code.google.com/p/slb/source/browse/test/example_coroutinemanager.cc

Lua code for the test are at the bottom of the file, the first part is
the implementation.

Regards,
   JLH

On Sat, Aug 31, 2013 at 5:17 PM, Alexey Baskakov
<alexey_baskakov@hotmail.com> wrote:
> Hi, Marek!
>
>
>> Lua supports cooperative coroutines out of the box, which is great.
>> Unfortunately Lua lacks built-in communication primitives. To fill the
>> void I've implemented Go style channels in pure Lua.
>
> That was not a comprehensive void, actually :)
>
> Have a look at
> http://github.com/loyso/LuaCSP
>
> You could find it interesting.
>
> Alexey.



-- 
JLH