Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/invoke.c

    r381fdee rb69ea6b  
    1010// Created On       : Tue Jan 17 12:27:26 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Feb  9 14:41:56 2018
    13 // Update Count     : 3
     12// Last Modified On : Fri Feb  9 16:37:42 2018
     13// Update Count     : 5
    1414//
    1515
     
    2828extern void __suspend_internal(void);
    2929extern void __leave_coroutine(void);
     30extern void __finish_creation(void);
    3031extern void __leave_thread_monitor( struct thread_desc * this );
    3132extern void disable_interrupts();
     
    4546        cor->state = Active;
    4647
     48        enable_interrupts( __cfaabi_dbg_ctx );
     49
    4750        main( this );
    4851
     
    5154        //Final suspend, should never return
    5255        __leave_coroutine();
    53         abortf("Resumed dead coroutine");
     56        __cabi_abort( "Resumed dead coroutine" );
    5457}
    5558
     
    6265        // First suspend, once the thread arrives here,
    6366        // the function pointer to main can be invalidated without risk
    64         __suspend_internal();
     67        __finish_creation();
    6568
    6669        // Fetch the thread handle from the user defined thread structure
     
    8184        //Final suspend, should never return
    8285        __leave_thread_monitor( thrd );
    83         abortf("Resumed dead thread");
     86        __cabi_abort( "Resumed dead thread" );
    8487}
    8588
Note: See TracChangeset for help on using the changeset viewer.