- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel.hfa (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
r038be32 r2d8f7b0 40 40 void P (semaphore & this); 41 41 bool V (semaphore & this); 42 bool V (semaphore & this, unsigned count);43 42 44 43 … … 145 144 void * ring_ptr; 146 145 size_t ring_sz; 147 148 // Statistics149 #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 #endif157 146 }; 158 147 … … 175 164 void * ring_ptr; 176 165 size_t ring_sz; 177 178 // Statistics179 #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 #endif187 166 }; 188 167 … … 234 213 struct io_ring io; 235 214 #endif 236 237 #if !defined(__CFA_NO_STATISTICS__)238 bool print_stats;239 #endif240 215 }; 241 216 extern Duration default_preemption(); … … 252 227 static inline struct processor * active_processor() { return TL_GET( this_processor ); } // UNSAFE 253 228 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 #endif260 229 261 230 // Local Variables: //
Note:
See TracChangeset
for help on using the changeset viewer.