- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
r089d30c r1f45c7d 116 116 // it is not a particularly safe scheme as it can make processors less homogeneous 117 117 struct { 118 thread$* thrd;118 $thread * thrd; 119 119 } init; 120 120 … … 151 151 struct __attribute__((aligned(128))) __timestamp_t { 152 152 volatile unsigned long long tv; 153 volatile unsigned long long ma; 154 }; 155 156 // Aligned timestamps which are used by the relaxed ready queue 157 struct __attribute__((aligned(128))) __help_cnts_t { 158 volatile unsigned long long src; 159 volatile unsigned long long dst; 160 volatile unsigned long long tri; 161 }; 162 163 static inline void ?{}(__timestamp_t & this) { this.tv = 0; this.ma = 0; } 153 }; 154 155 static inline void ?{}(__timestamp_t & this) { this.tv = 0; } 164 156 static inline void ^?{}(__timestamp_t & this) {} 165 157 … … 178 170 __timestamp_t * volatile tscs; 179 171 180 // Array of stats181 __help_cnts_t * volatile help;182 183 172 // Number of lanes (empty or not) 184 173 volatile size_t count; … … 227 216 // List of threads 228 217 __spinlock_t thread_list_lock; 229 __dllist_t(struct thread$) threads;218 __dllist_t(struct $thread) threads; 230 219 unsigned int nthreads; 231 220
Note:
See TracChangeset
for help on using the changeset viewer.