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