Ignore:
File:
1 edited

Legend:

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

    rb69ea6b r381fdee  
    1010// Created On       : Tue Jan 17 12:27:26 2016
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Fri Feb  9 16:37:42 2018
    13 // Update Count     : 5
     12// Last Modified On : Fri Feb  9 14:41:56 2018
     13// Update Count     : 3
    1414//
    1515
     
    2828extern void __suspend_internal(void);
    2929extern void __leave_coroutine(void);
    30 extern void __finish_creation(void);
    3130extern void __leave_thread_monitor( struct thread_desc * this );
    3231extern void disable_interrupts();
     
    4645        cor->state = Active;
    4746
    48         enable_interrupts( __cfaabi_dbg_ctx );
    49 
    5047        main( this );
    5148
     
    5451        //Final suspend, should never return
    5552        __leave_coroutine();
    56         __cabi_abort( "Resumed dead coroutine" );
     53        abortf("Resumed dead coroutine");
    5754}
    5855
     
    6562        // First suspend, once the thread arrives here,
    6663        // the function pointer to main can be invalidated without risk
    67         __finish_creation();
     64        __suspend_internal();
    6865
    6966        // Fetch the thread handle from the user defined thread structure
     
    8481        //Final suspend, should never return
    8582        __leave_thread_monitor( thrd );
    86         __cabi_abort( "Resumed dead thread" );
     83        abortf("Resumed dead thread");
    8784}
    8885
Note: See TracChangeset for help on using the changeset viewer.