Ignore:
File:
1 edited

Legend:

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

    re84ab3d r941e14a  
    661661
    662662        // Check if it is safe to preempt here
    663         if( !preemption_ready( ip ) ) { return; }
     663        if( !preemption_ready( ip ) ) {
     664                #if !defined(__CFA_NO_STATISTICS__)
     665                        __cfaabi_tls.this_stats->ready.threads.preempt.rllfwd++;
     666                #endif
     667                return;
     668        }
    664669
    665670        __cfaabi_dbg_print_buffer_decl( " KERNEL: preempting core %p (%p @ %p).\n", __cfaabi_tls.this_processor, __cfaabi_tls.this_thread, (void *)(cxt->uc_mcontext.CFA_REG_IP) );
     
    680685
    681686        // Preemption can occur here
     687
     688        #if !defined(__CFA_NO_STATISTICS__)
     689                __cfaabi_tls.this_stats->ready.threads.preempt.yield++;
     690        #endif
    682691
    683692        force_yield( __ALARM_PREEMPTION ); // Do the actual __cfactx_switch
Note: See TracChangeset for help on using the changeset viewer.