Changeset f23b685


Ignore:
Timestamp:
Jan 9, 2019, 1:11:08 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
76e069f
Parents:
274da98
Message:

added some comments and moved a line to ease coroutine cancellation

Location:
libcfa/src/concurrency
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/coroutine.cfa

    r274da98 rf23b685  
    165165            coroutine_desc * src = TL_GET( this_coroutine ); // optimization
    166166
     167            src->state = Halted;
     168
    167169            assertf( src->starter != 0,
    168170                  "Attempt to suspend/leave coroutine \"%.256s\" (%p) that has never been resumed.\n"
  • libcfa/src/concurrency/invoke.c

    r274da98 rf23b685  
    4949
    5050        main( this );
    51 
    52         cor->state = Halted;
    5351
    5452        //Final suspend, should never return
  • libcfa/src/concurrency/invoke.h

    r274da98 rf23b685  
    8888        };
    8989
     90        // struct which calls the monitor is accepting
    9091        struct __waitfor_mask_t {
    9192                // the index of the accepted function, -1 if none
Note: See TracChangeset for help on using the changeset viewer.