Changeset fc59b580
- Timestamp:
 - Apr 14, 2021, 4:40:19 PM (5 years ago)
 - 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
 - Location:
 - libcfa/src/concurrency
 - Files:
 - 
      
- 3 edited
 
- 
          
  kernel.cfa (modified) (2 diffs)
 - 
          
  kernel.hfa (modified) (1 diff)
 - 
          
  kernel/startup.cfa (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
libcfa/src/concurrency/kernel.cfa
r6a9b12b rfc59b580 659 659 this.idle++; 660 660 /* paranoid */ verify( this.idle <= this.total ); 661 661 remove(proc); 662 662 insert_first(this.idles, proc); 663 663 unlock( this ); … … 670 670 this.idle--; 671 671 /* paranoid */ verify( this.idle >= 0 ); 672 673 672 remove(proc); 673 insert_last(this.actives, proc); 674 674 unlock( this ); 675 675 /* paranoid */ verify( ! __preemption_enabled() );  - 
      
libcfa/src/concurrency/kernel.hfa
r6a9b12b rfc59b580 192 192 // List of idle processors 193 193 dlist(processor, processor) idles; 194 195 // List of active processors 196 dlist(processor, processor) actives; 194 197 }; 195 198  - 
      
libcfa/src/concurrency/kernel/startup.cfa
r6a9b12b rfc59b580 492 492 uint_fast32_t last_size = ready_mutate_register((__processor_id_t*)&this); 493 493 int target = this.cltr->procs.total += 1u; 494 insert_last(this.cltr->procs.actives, this); 494 495 495 496 // Adjust the ready queue size … … 507 508 uint_fast32_t last_size = ready_mutate_lock(); 508 509 int target = this.cltr->procs.total -= 1u; 510 remove(this); 509 511 510 512 // Adjust the ready queue size  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.