[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: Javier Guerra Giraldez <javier@...>
- Date: Thu, 5 Jan 2012 09:09:40 -0500
On Thu, Jan 5, 2012 at 8:31 AM, Johnson Lin <arch.jslin@gmail.com> wrote:
> On a second glimpse at libCoroutine, I think adding a wrapper around
> the simple C API and encapsulate some kind of buffer for value passing
> when switching might be doable.
i haven't seen libCoroutine; but since coroutines are all about
nonconcurrency, it sounds reasonably easy to just use a static pointer
or struct to hold any parameters. no need to allocate buffers, since
there won't be more than a single yield()/resume() happening at a
time.
--
Javier