Changeset a362f97 for src/libcfa/concurrency/coroutines
- Timestamp:
- Jan 27, 2017, 3:27:34 PM (7 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- c0aa336
- Parents:
- 6acb935 (diff), 0a86a30 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutines
r6acb935 ra362f97 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.