Changeset c993b15 for libcfa/src/concurrency/kernel.cfa
- Timestamp:
- Apr 29, 2021, 4:26:25 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 3eb55f98
- Parents:
- b2fc7ad9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
rb2fc7ad9 rc993b15 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-> id, this->name, (void*)this);165 __cfaabi_bits_print_safe( STDOUT_FILENO, "Processor : %d - %s (%p)\n", this->unique_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-> id, rdtscl());225 __cfaabi_bits_print_safe( STDOUT_FILENO, "PH:%d - %lld 0\n", this->unique_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-> id, rdtscl());238 __cfaabi_bits_print_safe( STDOUT_FILENO, "PH:%d - %lld 1\n", this->unique_id, rdtscl()); 239 239 } 240 240 #endif … … 390 390 391 391 post( this->terminated ); 392 393 392 394 393 if(this == mainProcessor) { … … 553 552 static void __schedule_thread( $thread * thrd ) { 554 553 /* paranoid */ verify( ! __preemption_enabled() ); 555 /* paranoid */ verify( kernelTLS().this_proc_id );556 554 /* paranoid */ verify( ready_schedule_islocked()); 557 555 /* paranoid */ verify( thrd ); … … 611 609 static inline $thread * __next_thread(cluster * this) with( *this ) { 612 610 /* paranoid */ verify( ! __preemption_enabled() ); 613 /* paranoid */ verify( kernelTLS().this_proc_id );614 611 615 612 ready_schedule_lock(); … … 617 614 ready_schedule_unlock(); 618 615 619 /* paranoid */ verify( kernelTLS().this_proc_id );620 616 /* paranoid */ verify( ! __preemption_enabled() ); 621 617 return thrd; … … 625 621 static inline $thread * __next_thread_slow(cluster * this) with( *this ) { 626 622 /* paranoid */ verify( ! __preemption_enabled() ); 627 /* paranoid */ verify( kernelTLS().this_proc_id );628 623 629 624 ready_schedule_lock(); … … 638 633 ready_schedule_unlock(); 639 634 640 /* paranoid */ verify( kernelTLS().this_proc_id );641 635 /* paranoid */ verify( ! __preemption_enabled() ); 642 636 return thrd;
Note: See TracChangeset
for help on using the changeset viewer.