- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel.hfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
r2d8f7b0 r038be32 40 40 void P (semaphore & this); 41 41 bool V (semaphore & this); 42 bool V (semaphore & this, unsigned count); 42 43 43 44 … … 144 145 void * ring_ptr; 145 146 size_t ring_sz; 147 148 // Statistics 149 #if !defined(__CFA_NO_STATISTICS__) 150 struct { 151 struct { 152 unsigned long long int val; 153 unsigned long long int cnt; 154 } submit_avg; 155 } stats; 156 #endif 146 157 }; 147 158 … … 164 175 void * ring_ptr; 165 176 size_t ring_sz; 177 178 // Statistics 179 #if !defined(__CFA_NO_STATISTICS__) 180 struct { 181 struct { 182 unsigned long long int val; 183 unsigned long long int cnt; 184 } completed_avg; 185 } stats; 186 #endif 166 187 }; 167 188 … … 213 234 struct io_ring io; 214 235 #endif 236 237 #if !defined(__CFA_NO_STATISTICS__) 238 bool print_stats; 239 #endif 215 240 }; 216 241 extern Duration default_preemption(); … … 227 252 static inline struct processor * active_processor() { return TL_GET( this_processor ); } // UNSAFE 228 253 static inline struct cluster * active_cluster () { return TL_GET( this_processor )->cltr; } 254 255 #if !defined(__CFA_NO_STATISTICS__) 256 static inline void print_stats_at_exit( cluster & this ) { 257 this.print_stats = true; 258 } 259 #endif 229 260 230 261 // Local Variables: //
Note:
See TracChangeset
for help on using the changeset viewer.