Changeset 6ba6846
- Timestamp:
- Jun 23, 2021, 2:05:29 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- b680198
- Parents:
- 953827a
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/locks.hfa
r953827a r6ba6846 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
r953827a r6ba6846 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.