Changeset 97fed44 for libcfa/src/concurrency/kernel/startup.cfa
- Timestamp:
- Jan 25, 2022, 4:54:35 PM (2 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- 6b2d444, a488783, f681823
- Parents:
- f57f6ea0 (diff), 4fcbf26 (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
rf57f6ea0 r97fed44 34 34 #include "kernel_private.hfa" 35 35 #include "startup.hfa" // STARTUP_PRIORITY_XXX 36 #include "limits.hfa" 36 37 #include "math.hfa" 37 38 … … 177 178 178 179 179 180 180 //============================================================================================= 181 181 // Kernel Setup logic … … 515 515 this.rdq.its = 0; 516 516 this.rdq.itr = 0; 517 this.rdq.id = -1u; 518 this.rdq.target = -1u; 519 this.rdq.last = -1u; 520 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; 521 522 do_terminate = false; 522 523 preemption_alarm = 0p; … … 536 537 } 537 538 539 this.idle_wctx.fd = 0; 540 541 // I'm assuming these two are reserved for standard input and output 542 // so I'm using them as sentinels with idle_wctx. 543 /* paranoid */ verify( this.idle_fd != 0 ); 544 /* paranoid */ verify( this.idle_fd != 1 ); 545 538 546 #if !defined(__CFA_NO_STATISTICS__) 539 547 print_stats = 0; … … 589 597 // Cluster 590 598 static void ?{}(__cluster_proc_list & this) { 591 this.fd = 0;599 this.fdw = 0p; 592 600 this.idle = 0; 593 601 this.total = 0; … … 686 694 uint_fast32_t last_size; 687 695 [this->unique_id, last_size] = ready_mutate_register(); 696 697 this->rdq.cpu = __kernel_getcpu(); 688 698 689 699 this->cltr->procs.total += 1u;
Note: See TracChangeset
for help on using the changeset viewer.