Changeset 5fe7322 for libcfa/src/concurrency/ready_queue.cfa
- Timestamp:
- Aug 25, 2020, 12:22:55 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:
- d119d613
- Parents:
- a3effcc
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/ready_queue.cfa
ra3effcc r5fe7322 262 262 do { 263 263 // Pick the index of a lane 264 unsigned r = __tls_rand(); 264 // unsigned r = __tls_rand(); 265 unsigned r = __tls_rand_fwd(); 265 266 [i, local] = idx_from_r(r, preferred); 266 267 … … 283 284 284 285 // Actually push it 285 bool lane_first = push(lanes.data[i], thrd); 286 #ifdef USE_SNZI 287 bool lane_first = 288 #endif 289 290 push(lanes.data[i], thrd); 286 291 287 292 #ifdef USE_SNZI … … 295 300 } 296 301 #endif 302 303 __tls_rand_advance_bck(); 297 304 298 305 // Unlock and return … … 335 342 #endif 336 343 // Pick two lists at random 337 unsigned ri = __tls_rand(); 338 unsigned rj = __tls_rand(); 344 // unsigned ri = __tls_rand(); 345 // unsigned rj = __tls_rand(); 346 unsigned ri = __tls_rand_bck(); 347 unsigned rj = __tls_rand_bck(); 339 348 340 349 unsigned i, j;
Note: See TracChangeset
for help on using the changeset viewer.