- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/startup.cfa (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
r7cf3b1d r1959528 34 34 #include "kernel_private.hfa" 35 35 #include "startup.hfa" // STARTUP_PRIORITY_XXX 36 #include "limits.hfa"37 36 #include "math.hfa" 38 37 … … 178 177 179 178 179 180 180 //============================================================================================= 181 181 // Kernel Setup logic … … 515 515 this.rdq.its = 0; 516 516 this.rdq.itr = 0; 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; 517 this.rdq.id = -1u; 518 this.rdq.target = -1u; 519 this.rdq.last = -1u; 520 this.rdq.cutoff = 0ull; 522 521 do_terminate = false; 523 522 preemption_alarm = 0p; … … 537 536 } 538 537 539 this.idle_wctx.fd = 0;540 541 // I'm assuming these two are reserved for standard input and output542 // 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 546 538 #if !defined(__CFA_NO_STATISTICS__) 547 539 print_stats = 0; … … 597 589 // Cluster 598 590 static void ?{}(__cluster_proc_list & this) { 599 this.fd w = 0p;591 this.fd = 0; 600 592 this.idle = 0; 601 593 this.total = 0; … … 694 686 uint_fast32_t last_size; 695 687 [this->unique_id, last_size] = ready_mutate_register(); 696 697 this->rdq.cpu = __kernel_getcpu();698 688 699 689 this->cltr->procs.total += 1u;
Note:
See TracChangeset
for help on using the changeset viewer.