Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/coroutines

    r8def349 rc84e80a  
    6262
    6363// Get current coroutine
    64 coroutine * this_coroutine(void);
     64extern coroutine * current_coroutine; //PRIVATE, never use directly
     65static inline coroutine * this_coroutine(void) {
     66        return current_coroutine;
     67}
    6568
    6669// Private wrappers for context switch and stack creation
     
    7376
    7477        assertf( src->last != 0,
    75                 "Attempt to suspend coroutine \"%.256s\" (%p) that has never been resumed.\n"
     78                "Attempt to suspend coroutine %.256s (%p) that has never been resumed.\n"
    7679                "Possible cause is a suspend executed in a member called by a coroutine user rather than by the coroutine main.",
    7780                src->name, src );
    7881        assertf( src->last->notHalted,
    79                 "Attempt by coroutine \"%.256s\" (%p) to suspend back to terminated coroutine \"%.256s\" (%p).\n"
     82                "Attempt by coroutine %.256s (%p) to suspend back to terminated coroutine %.256s (%p).\n"
    8083                "Possible cause is terminated coroutine's main routine has already returned.",
    8184                src->name, src, src->last->name, src->last );
Note: See TracChangeset for help on using the changeset viewer.