- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
r1f45c7d r089d30c 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 }; 154 155 static inline void ?{}(__timestamp_t & this) { this.tv = 0; } 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; } 156 164 static inline void ^?{}(__timestamp_t & this) {} 157 165 … … 170 178 __timestamp_t * volatile tscs; 171 179 180 // Array of stats 181 __help_cnts_t * volatile help; 182 172 183 // Number of lanes (empty or not) 173 184 volatile size_t count; … … 216 227 // List of threads 217 228 __spinlock_t thread_list_lock; 218 __dllist_t(struct $thread) threads;229 __dllist_t(struct thread$) threads; 219 230 unsigned int nthreads; 220 231
Note:
See TracChangeset
for help on using the changeset viewer.