Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/threads

    rbb82c03 r17e5e2b  
    1414// Update Count     : 0
    1515//
     16
     17#ifdef __CFORALL__
    1618
    1719#ifndef THREADS_H
     
    7375      coroutine* src = this_coroutine();                // optimization
    7476
    75         assertf( src->last != 0,
     77        assertf( src->last != 0, 
    7678                "Attempt to suspend coroutine %.256s (%p) that has never been resumed.\n"
    7779                "Possible cause is a suspend executed in a member called by a coroutine user rather than by the coroutine main.",
    7880                src->name, src );
    79         assertf( src->last->notHalted,
     81        assertf( src->last->notHalted, 
    8082                "Attempt by coroutine %.256s (%p) to suspend back to terminated coroutine %.256s (%p).\n"
    8183                "Possible cause is terminated coroutine's main routine has already returned.",
     
    98100      // not resuming self ?
    99101        if ( src != dst ) {
    100                 assertf( dst->notHalted ,
     102                assertf( dst->notHalted , 
    101103                        "Attempt by coroutine %.256s (%p) to resume terminated coroutine %.256s (%p).\n"
    102104                        "Possible cause is terminated coroutine's main routine has already returned.",
     
    113115#endif //THREADS_H
    114116
     117#else
     118#include_next <thread>
     119#endif //__CFORALL__
     120
    115121// Local Variables: //
    116122// mode: c //
Note: See TracChangeset for help on using the changeset viewer.