diff --git a/src_main/thread/pitimer.cpp b/src_main/thread/pitimer.cpp index 5720fa73..27026ab4 100755 --- a/src_main/thread/pitimer.cpp +++ b/src_main/thread/pitimer.cpp @@ -457,13 +457,13 @@ PITimer::PITimer(TimerEvent slot, void * data, PITimer::TimerImplementation ti): } -PITimer::PITimer(const PITimer & other): PIObject() { - piMonitor.timers++; - imp_mode = other.imp_mode; - initFirst(); - data_t = other.data_t; - ret_func = other.ret_func; -} +//PITimer::PITimer(const PITimer & other): PIObject() { +// piMonitor.timers++; +// imp_mode = other.imp_mode; +// initFirst(); +// data_t = other.data_t; +// ret_func = other.ret_func; +//} PITimer::~PITimer() { diff --git a/src_main/thread/pitimer.h b/src_main/thread/pitimer.h index 07740b6c..609e05c1 100755 --- a/src_main/thread/pitimer.h +++ b/src_main/thread/pitimer.h @@ -94,7 +94,7 @@ public: //! \brief Constructs timer with "slot" slot, "data" data and "ti" implementation explicit PITimer(TimerEvent slot, void * data = 0, TimerImplementation ti = Thread); - PITimer(const PITimer & other); +// PITimer(const PITimer & other); virtual ~PITimer(); @@ -246,7 +246,10 @@ protected: PIVector delims; _PITimerBase * imp; - + +private: + explicit PITimer(const PITimer & ); + void operator =(const PITimer & ); };