Changeset c426b03


Ignore:
Timestamp:
Apr 1, 2021, 8:20:18 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
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
Message:

Minor clean-up

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/ready_queue.cfa

    r8c3a3a14 rc426b03  
    251251        thrd->link.ts = rdtscl();
    252252
     253        bool first = false;
    253254        __attribute__((unused)) bool local;
    254255        __attribute__((unused)) int preferred;
     
    286287        } while( !__atomic_try_acquire( &lanes.data[i].lock ) );
    287288
    288         bool first = false;
    289 
    290289        // Actually push it
    291290        #ifdef USE_SNZI
     
    306305        #endif
    307306
    308         __tls_rand_advance_bck();
    309 
    310307        // Unlock and return
    311308        __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();
    312312
    313313        __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.