git-svn-id: svn://db.shs.com.ru/pip@458 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2017-04-20 14:39:40 +00:00
parent 706b30cb91
commit 395273dfe6
2 changed files with 12 additions and 9 deletions

View File

@@ -457,13 +457,13 @@ PITimer::PITimer(TimerEvent slot, void * data, PITimer::TimerImplementation ti):
} }
PITimer::PITimer(const PITimer & other): PIObject() { //PITimer::PITimer(const PITimer & other): PIObject() {
piMonitor.timers++; // piMonitor.timers++;
imp_mode = other.imp_mode; // imp_mode = other.imp_mode;
initFirst(); // initFirst();
data_t = other.data_t; // data_t = other.data_t;
ret_func = other.ret_func; // ret_func = other.ret_func;
} //}
PITimer::~PITimer() { PITimer::~PITimer() {

View File

@@ -94,7 +94,7 @@ public:
//! \brief Constructs timer with "slot" slot, "data" data and "ti" implementation //! \brief Constructs timer with "slot" slot, "data" data and "ti" implementation
explicit PITimer(TimerEvent slot, void * data = 0, TimerImplementation ti = Thread); explicit PITimer(TimerEvent slot, void * data = 0, TimerImplementation ti = Thread);
PITimer(const PITimer & other); // PITimer(const PITimer & other);
virtual ~PITimer(); virtual ~PITimer();
@@ -247,6 +247,9 @@ protected:
_PITimerBase * imp; _PITimerBase * imp;
private:
explicit PITimer(const PITimer & );
void operator =(const PITimer & );
}; };