fixed SF# 2890489:Unused code in TimedNotificationQueue::wait

This commit is contained in:
Guenter Obiltschnig 2009-11-02 09:56:33 +00:00
parent ffd027c38a
commit 1568abf9be

View File

@ -1,7 +1,7 @@
// //
// TimedNotificationQueue.cpp // TimedNotificationQueue.cpp
// //
// $Id: //poco/Main/Foundation/src/TimedNotificationQueue.cpp#1 $ // $Id: //poco/1.3/Foundation/src/TimedNotificationQueue.cpp#5 $
// //
// Library: Foundation // Library: Foundation
// Package: Notifications // Package: Notifications
@ -162,7 +162,7 @@ bool TimedNotificationQueue::wait(Timestamp::TimeDiff interval)
{ {
Timestamp now; Timestamp now;
Timestamp::TimeDiff sleep = interval <= MAX_SLEEP ? interval : MAX_SLEEP; Timestamp::TimeDiff sleep = interval <= MAX_SLEEP ? interval : MAX_SLEEP;
if (_nfAvailable.tryWait(static_cast<long>((interval + 999)/1000))) if (_nfAvailable.tryWait(static_cast<long>((sleep + 999)/1000)))
return true; return true;
interval -= now.elapsed(); interval -= now.elapsed();
} }