LWN.net Logo

Coroutines

Coroutines

Posted May 9, 2012 20:42 UTC (Wed) by kjp (subscriber, #39639)
In reply to: Coroutines by endecotp
Parent article: nPth - The new GNU portable threads library

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 :)


(Log in to post comments)

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