Change 16107

ShadauxCat (ShadauxCat)
ShadauxCat committed this change into //guest/ShadauxCat/Sprawl/Mainline under Review 16108
View Review
Download .zip
- Added GetCurrentCoroutine() and GetCallingCoroutine() functions to obtain reference to the currently executing coroutine object and to the coroutine that was previously executing when this one began (i.e., the one that called Resume() / operator() on it)
- Coroutines now surface exceptions - if a coroutine throws an exception that is unhandled, the exception will be caught and rethrown after the previous coroutine (or potentially 'main routine') resumes, allowing it to be caught and handled there.

#review-16108
  • Files 5
  • Comments 0
5 edited 0 added 0 deleted
UnitTests/UnitTests_Thread.cpp#9
Loading...
threading/coroutine.cpp#6
Loading...
threading/coroutine.hpp#7
Loading...
threading/coroutine_linux.cpp#5
Loading...
threading/coroutine_windows.cpp#5
Loading...
Tip: Use n and p to cycle through the changes.