LWN.net Logo

Coroutines

Coroutines

Posted May 8, 2012 17:39 UTC (Tue) by endecotp (guest, #36428)
In reply to: Coroutines by geertj
Parent article: nPth - The new GNU portable threads library

> I recently did a MIT licensed co-routine library for C/C++:

Boost has a proposal for a coroutine library by Oliver Kowalke which should be reviewed sometime in the next few months. See e.g.

http://ok73.ok.funpic.de/boost/libs/coroutine/doc/html/in...
http://thread.gmane.org/gmane.comp.lib.boost.devel/230507

It would be great if you could write a review when the time comes - getting the view of someone with relevant experience is obviously very useful.


(Log in to post comments)

Coroutines

Posted May 9, 2012 20:42 UTC (Wed) by kjp (subscriber, #39639) [Link]

woah. it saves full stack and local variables? The last time I used coroutines, all I had were a few macros that just saved the line number (using a switch statement to take you there on resume). I was always afraid that I had an uninitialized local variable problem hiding somewhere, no matter what the testing showed.... of course, it was REALLY fast :)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds