Re:Lua-Style Coroutines in C++
by pja on Wednesday May 04, 2011 @09:11AM
(#2513679)
Yeah, this is going to mix very badly with exceptions.
Also, a little rootling around on the web reveals the following statement in IBM's z/OS docs:
"Do not issue getcontext() in a C++ constructor or destructor, since the saved context would not be usable in a subsequent setcontext() or swapcontext() after the constructor or destructor returns."
Also, a little rootling around on the web reveals the following statement in IBM's z/OS docs:
"Do not issue getcontext() in a C++ constructor or destructor, since the saved context would not be usable in a subsequent setcontext() or swapcontext() after the constructor or destructor returns."