Changes in / [929d925:b680198]
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
r929d925 rb680198 174 174 }; 175 175 176 static inline void ?{}(fast_lock & this) { this.owner = 0p; } 177 176 178 static inline bool $try_lock(fast_lock & this, $thread * thrd) { 177 179 $thread * exp = 0p; -
libcfa/src/concurrency/ready_queue.cfa
r929d925 rb680198 20 20 21 21 22 //#define USE_RELAXED_FIFO22 #define USE_RELAXED_FIFO 23 23 // #define USE_WORK_STEALING 24 #define USE_CPU_WORK_STEALING24 // #define USE_CPU_WORK_STEALING 25 25 26 26 #include "bits/defs.hfa" … … 760 760 for(i; lanes.count) { 761 761 unsigned long long tsc1 = ts(lanes.data[i]); 762 unsigned long long tsc2 = rdtscl() 762 unsigned long long tsc2 = rdtscl(); 763 763 lanes.tscs[i].tv = min(tsc1, tsc2); 764 764 }
Note: See TracChangeset
for help on using the changeset viewer.