- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel.cfa (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
rc993b15 rb7fd2db6 163 163 #if !defined(__CFA_NO_STATISTICS__) 164 164 if( this->print_halts ) { 165 __cfaabi_bits_print_safe( STDOUT_FILENO, "Processor : %d - %s (%p)\n", this-> unique_id, this->name, (void*)this);165 __cfaabi_bits_print_safe( STDOUT_FILENO, "Processor : %d - %s (%p)\n", this->id, this->name, (void*)this); 166 166 } 167 167 #endif … … 223 223 #if !defined(__CFA_NO_STATISTICS__) 224 224 if(this->print_halts) { 225 __cfaabi_bits_print_safe( STDOUT_FILENO, "PH:%d - %lld 0\n", this-> unique_id, rdtscl());225 __cfaabi_bits_print_safe( STDOUT_FILENO, "PH:%d - %lld 0\n", this->id, rdtscl()); 226 226 } 227 227 #endif … … 236 236 #if !defined(__CFA_NO_STATISTICS__) 237 237 if(this->print_halts) { 238 __cfaabi_bits_print_safe( STDOUT_FILENO, "PH:%d - %lld 1\n", this-> unique_id, rdtscl());238 __cfaabi_bits_print_safe( STDOUT_FILENO, "PH:%d - %lld 1\n", this->id, rdtscl()); 239 239 } 240 240 #endif … … 390 390 391 391 post( this->terminated ); 392 392 393 393 394 if(this == mainProcessor) { … … 552 553 static void __schedule_thread( $thread * thrd ) { 553 554 /* paranoid */ verify( ! __preemption_enabled() ); 555 /* paranoid */ verify( kernelTLS().this_proc_id ); 554 556 /* paranoid */ verify( ready_schedule_islocked()); 555 557 /* paranoid */ verify( thrd ); … … 609 611 static inline $thread * __next_thread(cluster * this) with( *this ) { 610 612 /* paranoid */ verify( ! __preemption_enabled() ); 613 /* paranoid */ verify( kernelTLS().this_proc_id ); 611 614 612 615 ready_schedule_lock(); … … 614 617 ready_schedule_unlock(); 615 618 619 /* paranoid */ verify( kernelTLS().this_proc_id ); 616 620 /* paranoid */ verify( ! __preemption_enabled() ); 617 621 return thrd; … … 621 625 static inline $thread * __next_thread_slow(cluster * this) with( *this ) { 622 626 /* paranoid */ verify( ! __preemption_enabled() ); 627 /* paranoid */ verify( kernelTLS().this_proc_id ); 623 628 624 629 ready_schedule_lock(); … … 633 638 ready_schedule_unlock(); 634 639 640 /* paranoid */ verify( kernelTLS().this_proc_id ); 635 641 /* paranoid */ verify( ! __preemption_enabled() ); 636 642 return thrd;
Note:
See TracChangeset
for help on using the changeset viewer.