Changes in src/libcfa/concurrency/threads [bb82c03:17e5e2b]
- File:
-
- 1 edited
-
src/libcfa/concurrency/threads (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/threads
rbb82c03 r17e5e2b 14 14 // Update Count : 0 15 15 // 16 17 #ifdef __CFORALL__ 16 18 17 19 #ifndef THREADS_H … … 73 75 coroutine* src = this_coroutine(); // optimization 74 76 75 assertf( src->last != 0, 77 assertf( src->last != 0, 76 78 "Attempt to suspend coroutine %.256s (%p) that has never been resumed.\n" 77 79 "Possible cause is a suspend executed in a member called by a coroutine user rather than by the coroutine main.", 78 80 src->name, src ); 79 assertf( src->last->notHalted, 81 assertf( src->last->notHalted, 80 82 "Attempt by coroutine %.256s (%p) to suspend back to terminated coroutine %.256s (%p).\n" 81 83 "Possible cause is terminated coroutine's main routine has already returned.", … … 98 100 // not resuming self ? 99 101 if ( src != dst ) { 100 assertf( dst->notHalted , 102 assertf( dst->notHalted , 101 103 "Attempt by coroutine %.256s (%p) to resume terminated coroutine %.256s (%p).\n" 102 104 "Possible cause is terminated coroutine's main routine has already returned.", … … 113 115 #endif //THREADS_H 114 116 117 #else 118 #include_next <thread> 119 #endif //__CFORALL__ 120 115 121 // Local Variables: // 116 122 // mode: c //
Note:
See TracChangeset
for help on using the changeset viewer.