mirror of
				https://github.com/pocoproject/poco.git
				synced 2025-10-25 18:22:59 +02:00 
			
		
		
		
	porting rev. 1914 from 1.4.4 branch (fixed SF# 3543047)
This commit is contained in:
		| @@ -80,7 +80,7 @@ void Timer::start(const AbstractTimerCallback& method, ThreadPool& threadPool) | ||||
| void Timer::start(const AbstractTimerCallback& method, Thread::Priority priority, ThreadPool& threadPool) | ||||
| { | ||||
| 	Timestamp nextInvocation; | ||||
| 	nextInvocation += _startInterval*1000; | ||||
| 	nextInvocation += static_cast<Timestamp::TimeVal>(_startInterval)*1000; | ||||
|  | ||||
| 	poco_assert (!_pCallback); | ||||
|  | ||||
| @@ -178,7 +178,7 @@ void Timer::run() | ||||
| 					sleep = 0; | ||||
| 					break; | ||||
| 				} | ||||
| 				_nextInvocation += interval*1000; | ||||
| 				_nextInvocation += static_cast<Timestamp::TimeVal>(_startInterval)*1000; | ||||
| 				++_skipped; | ||||
| 			} | ||||
| 		} | ||||
| @@ -210,7 +210,7 @@ void Timer::run() | ||||
| 			} | ||||
| 			interval = _periodicInterval; | ||||
| 		} | ||||
| 		_nextInvocation += interval*1000; | ||||
| 		_nextInvocation += static_cast<Timestamp::TimeVal>(_startInterval)*1000; | ||||
| 		_skipped = 0; | ||||
| 	} | ||||
| 	while (interval > 0); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Aleksandar Fabijanic
					Aleksandar Fabijanic