"Fossies" - the Fresh Open Source Software Archive

Member "xosview-1.23/linux/intmeter.h" (11 Jul 2020, 669 Bytes) of package /linux/misc/xosview-1.23.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "intmeter.h" see the Fossies "Dox" file reference documentation.

    1 //
    2 //  Copyright (c) 1994, 1995, 2006 by Mike Romberg ( mike.romberg@noaa.gov )
    3 //
    4 //  This file may be distributed under terms of the GPL
    5 //
    6 
    7 #ifndef _INTMETER_H_
    8 #define _INTMETER_H_
    9 
   10 #include "bitmeter.h"
   11 #include "xosview.h"
   12 #include "cpumeter.h"
   13 
   14 
   15 class IntMeter : public BitMeter {
   16 public:
   17   IntMeter( XOSView *parent, int cpu = 0 );
   18   ~IntMeter( void );
   19 
   20   void checkevent( void );
   21   void checkResources( void );
   22   static int countCPUs( void ) { return CPUMeter::countCPUs(); }
   23 
   24 private:
   25   unsigned long *_irqs, *_lastirqs;
   26   int _cpu;
   27   bool _separate;
   28 
   29   void getirqs( void );
   30   void updateirqcount( int n, bool init );
   31   void initirqcount( void );
   32 };
   33 
   34 #endif