Changeset a7504db for libcfa/src/concurrency/kernel/startup.cfa
- Timestamp:
- Apr 14, 2021, 4:07:18 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 6a9b12b
- Parents:
- a33c113
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/startup.cfa
ra33c113 ra7504db 489 489 #endif 490 490 491 lock( this.cltr->idles );492 int target = this.cltr->idles.total += 1u;493 unlock( this.cltr->idles );494 495 491 // Register and Lock the RWlock so no-one pushes/pops while we are changing the queue 496 492 uint_fast32_t last_size = ready_mutate_register((__processor_id_t*)&this); 493 int target = this.cltr->idles.total += 1u; 497 494 498 495 // Adjust the ready queue size … … 507 504 // Not a ctor, it just preps the destruction but should not destroy members 508 505 static void deinit(processor & this) { 509 lock( this.cltr->idles );510 int target = this.cltr->idles.total -= 1u;511 unlock( this.cltr->idles );512 513 506 // Lock the RWlock so no-one pushes/pops while we are changing the queue 514 507 uint_fast32_t last_size = ready_mutate_lock(); 508 int target = this.cltr->idles.total -= 1u; 515 509 516 510 // Adjust the ready queue size
Note: See TracChangeset
for help on using the changeset viewer.