Changes in / [59f3f61:0583b47b]
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
-
locks.hfa (modified) (1 diff)
-
ready_queue.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
r59f3f61 r0583b47b 197 197 static inline $thread * unlock( fast_lock & this ) __attribute__((artificial)); 198 198 static inline $thread * unlock( fast_lock & this ) { 199 $thread * thrd = active_thread(); 200 /* paranoid */ verify(thrd == this.owner); 199 /* paranoid */ verify(active_thread() == this.owner); 201 200 202 201 // open 'owner' before unlocking anyone -
libcfa/src/concurrency/ready_queue.cfa
r59f3f61 r0583b47b 413 413 unsigned it2 = proc->rdq.itr + 1; 414 414 unsigned idx1 = proc->rdq.id + (it1 % READYQ_SHARD_FACTOR); 415 unsigned idx2 = proc->rdq.id + (it 1% READYQ_SHARD_FACTOR);415 unsigned idx2 = proc->rdq.id + (it2 % READYQ_SHARD_FACTOR); 416 416 unsigned long long tsc1 = ts(lanes.data[idx1]); 417 417 unsigned long long tsc2 = ts(lanes.data[idx2]);
Note:
See TracChangeset
for help on using the changeset viewer.