Changeset bb82c03 for src/libcfa/concurrency
- Timestamp:
- Jan 11, 2017, 4:10:51 PM (8 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:
- 2162c2c
- Parents:
- ff2d7341
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/threads
rff2d7341 rbb82c03 14 14 // Update Count : 0 15 15 // 16 17 #ifdef __CFORALL__18 16 19 17 #ifndef THREADS_H … … 75 73 coroutine* src = this_coroutine(); // optimization 76 74 77 assertf( src->last != 0, 75 assertf( src->last != 0, 78 76 "Attempt to suspend coroutine %.256s (%p) that has never been resumed.\n" 79 77 "Possible cause is a suspend executed in a member called by a coroutine user rather than by the coroutine main.", 80 78 src->name, src ); 81 assertf( src->last->notHalted, 79 assertf( src->last->notHalted, 82 80 "Attempt by coroutine %.256s (%p) to suspend back to terminated coroutine %.256s (%p).\n" 83 81 "Possible cause is terminated coroutine's main routine has already returned.", … … 100 98 // not resuming self ? 101 99 if ( src != dst ) { 102 assertf( dst->notHalted , 100 assertf( dst->notHalted , 103 101 "Attempt by coroutine %.256s (%p) to resume terminated coroutine %.256s (%p).\n" 104 102 "Possible cause is terminated coroutine's main routine has already returned.", … … 115 113 #endif //THREADS_H 116 114 117 #else118 #include_next <thread>119 #endif //__CFORALL__120 121 115 // Local Variables: // 122 116 // mode: c //
Note: See TracChangeset
for help on using the changeset viewer.