Ignore:
File:
1 edited

Legend:

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

    rc993b15 rb7fd2db6  
    163163        #if !defined(__CFA_NO_STATISTICS__)
    164164                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);
    166166                }
    167167        #endif
     
    223223                                #if !defined(__CFA_NO_STATISTICS__)
    224224                                        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());
    226226                                        }
    227227                                #endif
     
    236236                                #if !defined(__CFA_NO_STATISTICS__)
    237237                                        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());
    239239                                        }
    240240                                #endif
     
    390390
    391391        post( this->terminated );
     392
    392393
    393394        if(this == mainProcessor) {
     
    552553static void __schedule_thread( $thread * thrd ) {
    553554        /* paranoid */ verify( ! __preemption_enabled() );
     555        /* paranoid */ verify( kernelTLS().this_proc_id );
    554556        /* paranoid */ verify( ready_schedule_islocked());
    555557        /* paranoid */ verify( thrd );
     
    609611static inline $thread * __next_thread(cluster * this) with( *this ) {
    610612        /* paranoid */ verify( ! __preemption_enabled() );
     613        /* paranoid */ verify( kernelTLS().this_proc_id );
    611614
    612615        ready_schedule_lock();
     
    614617        ready_schedule_unlock();
    615618
     619        /* paranoid */ verify( kernelTLS().this_proc_id );
    616620        /* paranoid */ verify( ! __preemption_enabled() );
    617621        return thrd;
     
    621625static inline $thread * __next_thread_slow(cluster * this) with( *this ) {
    622626        /* paranoid */ verify( ! __preemption_enabled() );
     627        /* paranoid */ verify( kernelTLS().this_proc_id );
    623628
    624629        ready_schedule_lock();
     
    633638        ready_schedule_unlock();
    634639
     640        /* paranoid */ verify( kernelTLS().this_proc_id );
    635641        /* paranoid */ verify( ! __preemption_enabled() );
    636642        return thrd;
Note: See TracChangeset for help on using the changeset viewer.