Ignore:
Timestamp:
Apr 14, 2021, 4:28:55 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:
fc59b580
Parents:
a7504db
Message:

Incremental change towards having the cluster keep a list of active processors.

File:
1 edited

Legend:

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

    ra7504db r6a9b12b  
    491491        // Register and Lock the RWlock so no-one pushes/pops while we are changing the queue
    492492        uint_fast32_t last_size = ready_mutate_register((__processor_id_t*)&this);
    493                 int target = this.cltr->idles.total += 1u;
     493                int target = this.cltr->procs.total += 1u;
    494494
    495495                // Adjust the ready queue size
     
    506506        // Lock the RWlock so no-one pushes/pops while we are changing the queue
    507507        uint_fast32_t last_size = ready_mutate_lock();
    508                 int target = this.cltr->idles.total -= 1u;
     508                int target = this.cltr->procs.total -= 1u;
    509509
    510510                // Adjust the ready queue size
     
    555555//-----------------------------------------------------------------------------
    556556// Cluster
    557 static void ?{}(__cluster_idles & this) {
     557static void ?{}(__cluster_proc_list & this) {
    558558        this.lock  = 0;
    559559        this.idle  = 0;
    560560        this.total = 0;
    561         (this.list){};
    562561}
    563562
Note: See TracChangeset for help on using the changeset viewer.