Changeset 5f6a172
- Timestamp:
- Apr 16, 2021, 2:01:27 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- c8a0210, e54d0c3
- Parents:
- 6528d75
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/ready_queue.cfa
r6528d75 r5f6a172 44 44 #define BIAS 4 45 45 #define READYQ_SHARD_FACTOR 4 46 #define SEQUENTIAL_SHARD 1 46 47 #elif defined(USE_WORK_STEALING) 47 48 #define READYQ_SHARD_FACTOR 2 49 #define SEQUENTIAL_SHARD 2 48 50 #else 49 51 #error no scheduling strategy selected … … 216 218 217 219 void ^?{}(__ready_queue_t & this) with (this) { 218 verify( 1== lanes.count );220 verify( SEQUENTIAL_SHARD == lanes.count ); 219 221 free(lanes.data); 220 222 free(lanes.tscs); … … 614 616 ncount = target * READYQ_SHARD_FACTOR; 615 617 } else { 616 ncount = 1;618 ncount = SEQUENTIAL_SHARD; 617 619 } 618 620 … … 662 664 // Find new count 663 665 // Make sure we always have atleast 1 list 664 lanes.count = target >= 2 ? target * READYQ_SHARD_FACTOR: 1;666 lanes.count = target >= 2 ? target * READYQ_SHARD_FACTOR: SEQUENTIAL_SHARD; 665 667 /* paranoid */ verify( ocount >= lanes.count ); 666 668 /* paranoid */ verify( lanes.count == target * READYQ_SHARD_FACTOR || target < 2 );
Note: See TracChangeset
for help on using the changeset viewer.