Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members
SessionCounter.hpp
00001 #ifndef VITOOKI_SESSIONCOUNTER_HPP 00002 #define VITOOKI_SESSIONCOUNTER_HPP 00003 #include "VMutex.hpp" 00004 #include "global.hpp" 00005 #include "VThread.hpp" 00006 00007 class SessionCounter : public VThread 00008 { 00009 public: 00010 SessionCounter(const char*); 00011 ~SessionCounter(); 00012 void increment(); 00013 void decrement(); 00014 void stop(); 00015 void run(); 00016 protected: 00017 char filename[MAX_STR_LEN]; 00018 bool stopped; 00019 unsigned int counter,incr,decr; 00020 VMutex imutex,dmutex; 00021 }; 00022 #endif