- File:
 - 
      
- 1 edited
 
- 
          
  libcfa/src/concurrency/preemption.cfa (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
libcfa/src/concurrency/preemption.cfa
re84ab3d r941e14a 661 661 662 662 // 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 } 664 669 665 670 __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) ); … … 680 685 681 686 // Preemption can occur here 687 688 #if !defined(__CFA_NO_STATISTICS__) 689 __cfaabi_tls.this_stats->ready.threads.preempt.yield++; 690 #endif 682 691 683 692 force_yield( __ALARM_PREEMPTION ); // Do the actual __cfactx_switch  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.