Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.hfa

    r038be32 r2d8f7b0  
    4040void   P (semaphore & this);
    4141bool   V (semaphore & this);
    42 bool   V (semaphore & this, unsigned count);
    4342
    4443
     
    145144        void * ring_ptr;
    146145        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
    157146};
    158147
     
    175164        void * ring_ptr;
    176165        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
    187166};
    188167
     
    234213                struct io_ring io;
    235214        #endif
    236 
    237         #if !defined(__CFA_NO_STATISTICS__)
    238                 bool print_stats;
    239         #endif
    240215};
    241216extern Duration default_preemption();
     
    252227static inline struct processor * active_processor() { return TL_GET( this_processor ); } // UNSAFE
    253228static 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
    260229
    261230// Local Variables: //
Note: See TracChangeset for help on using the changeset viewer.