mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-29 15:34:07 +02:00
fixed SF# 2890489:Unused code in TimedNotificationQueue::wait
This commit is contained in:
parent
ffd027c38a
commit
1568abf9be
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user