lua-users home
lua-l archive

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


On Thu, Jan 5, 2012 at 6:41 PM, Petite Abeille <petite.abeille@gmail.com> wrote:
>
> On Jan 5, 2012, at 11:30 AM, Johnson Lin wrote:
>
>>  I need asymmetric coroutine
>> support and value passing (just like the Lua one), and can be compiled
>> across 3 major platforms (windows, osx and linux).
>
> Not sure how it fits your requirements, but have you looked at Steve Dekorte's libcoroutine?
>
> http://www.dekorte.com/projects/opensource/libCoroutine/
> https://github.com/stevedekorte/coroutine
>
>

Hello, thanks for the fast reply. And yes I've seen this one, however
it can only provide a context (which acts as value passing) when a new
coroutine starts. I may be ignorant here, but I don't see how to pass
a value when switching (yielding/resuming).