lua-users home
lua-l archive

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


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