- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutines
r8def349 rc84e80a 62 62 63 63 // Get current coroutine 64 coroutine * this_coroutine(void); 64 extern coroutine * current_coroutine; //PRIVATE, never use directly 65 static inline coroutine * this_coroutine(void) { 66 return current_coroutine; 67 } 65 68 66 69 // Private wrappers for context switch and stack creation … … 73 76 74 77 assertf( src->last != 0, 75 "Attempt to suspend coroutine \"%.256s\"(%p) that has never been resumed.\n"78 "Attempt to suspend coroutine %.256s (%p) that has never been resumed.\n" 76 79 "Possible cause is a suspend executed in a member called by a coroutine user rather than by the coroutine main.", 77 80 src->name, src ); 78 81 assertf( src->last->notHalted, 79 "Attempt by coroutine \"%.256s\" (%p) to suspend back to terminated coroutine \"%.256s\"(%p).\n"82 "Attempt by coroutine %.256s (%p) to suspend back to terminated coroutine %.256s (%p).\n" 80 83 "Possible cause is terminated coroutine's main routine has already returned.", 81 84 src->name, src, src->last->name, src->last );
Note:
See TracChangeset
for help on using the changeset viewer.