[Coroutine] Migrating coroutines between different threads

Hi, people. I have a question about the coroutines in boost (both the normal Coroutine and the asio couroutine). Can I suspend a coroutine in one thread, then later on resume it in another thread? I have been googling about this and found some (outdated) documents saying that this is not possible ( http://www.crystalclearsoftware.com/soc/coroutine/coroutine/coroutine_thread... ). However, I did not find this warning in the document of the current release. Is this limitation still there or not?

I have been googling about this and found some (outdated) documents saying that this is not possible ( http://www.crystalclearsoftware.com/soc/coroutine/coroutine/coroutine_thread... ).
this is another library
However, I did not find this warning in the document of the current release. Is this limitation still there or not?
as long as you don't use TLS you can suspend a coroutine in thread A and resume in thread B
participants (2)
-
lin li
-
Oliver Kowalke