[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Any suggestion for a robust C coroutine library which can be used with LuaJIT ?
- From: Johnson Lin <arch.jslin@...>
- Date: Thu, 5 Jan 2012 19:09:31 +0800
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).