Ignore:
Timestamp:
Jan 17, 2022, 4:44:58 PM (4 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
Children:
e57de69, f55f110
Parents:
0c51f9ad (diff), 0fc447c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

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

    r0c51f9ad ra77f25b  
    3434#include "kernel_private.hfa"
    3535#include "startup.hfa"          // STARTUP_PRIORITY_XXX
     36#include "limits.hfa"
    3637#include "math.hfa"
    3738
     
    514515        this.rdq.its = 0;
    515516        this.rdq.itr = 0;
    516         this.rdq.id  = -1u;
    517         this.rdq.target = -1u;
    518         this.rdq.last = -1u;
    519         this.rdq.cutoff = 0ull;
     517        this.rdq.id  = MAX;
     518        this.rdq.target = MAX;
     519        this.rdq.last = MAX;
     520        this.rdq.cpu = 0;
     521        // this.rdq.cutoff = 0ull;
    520522        do_terminate = false;
    521523        preemption_alarm = 0p;
     
    685687        uint_fast32_t last_size;
    686688        [this->unique_id, last_size] = ready_mutate_register();
     689
     690                this->rdq.cpu = __kernel_getcpu();
    687691
    688692                this->cltr->procs.total += 1u;
Note: See TracChangeset for help on using the changeset viewer.