Ignore:
Timestamp:
Apr 14, 2021, 4:40:19 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
a017ee7
Parents:
6a9b12b
Message:

Clusters now keep track of the active processors as well

File:
1 edited

Legend:

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

    r6a9b12b rfc59b580  
    659659                this.idle++;
    660660                /* paranoid */ verify( this.idle <= this.total );
    661 
     661                remove(proc);
    662662                insert_first(this.idles, proc);
    663663        unlock( this );
     
    670670                this.idle--;
    671671                /* paranoid */ verify( this.idle >= 0 );
    672 
    673672                remove(proc);
     673                insert_last(this.actives, proc);
    674674        unlock( this );
    675675        /* paranoid */ verify( ! __preemption_enabled() );
Note: See TracChangeset for help on using the changeset viewer.