Changeset c426b03
- Timestamp:
- Apr 1, 2021, 8:20:18 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:
- 7a2972b9
- Parents:
- 8c3a3a14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/ready_queue.cfa
r8c3a3a14 rc426b03 251 251 thrd->link.ts = rdtscl(); 252 252 253 bool first = false; 253 254 __attribute__((unused)) bool local; 254 255 __attribute__((unused)) int preferred; … … 286 287 } while( !__atomic_try_acquire( &lanes.data[i].lock ) ); 287 288 288 bool first = false;289 290 289 // Actually push it 291 290 #ifdef USE_SNZI … … 306 305 #endif 307 306 308 __tls_rand_advance_bck();309 310 307 // Unlock and return 311 308 __atomic_unlock( &lanes.data[i].lock ); 309 310 // Mark the current index in the tls rng instance as having an item 311 __tls_rand_advance_bck(); 312 312 313 313 __cfadbg_print_safe(ready_queue, "Kernel : Pushed %p on cluster %p (idx: %u, mask %llu, first %d)\n", thrd, cltr, i, used.mask[0], lane_first);
Note: See TracChangeset
for help on using the changeset viewer.