changed timeout calculation
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4918 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -222,14 +222,12 @@ BMediaEventLooper::ControlLoop()
|
|||||||
// only the scheduling latency).
|
// only the scheduling latency).
|
||||||
|
|
||||||
latency = fEventLatency + fSchedulingLatency;
|
latency = fEventLatency + fSchedulingLatency;
|
||||||
// printf("node %02d, latency %Ld\n", ID(), latency);
|
|
||||||
|
|
||||||
if (fEventQueue.HasEvents() && (TimeSource()->Now() - latency) >= fEventQueue.FirstEventTime()) {
|
if (fEventQueue.HasEvents() && (TimeSource()->Now() - latency) >= fEventQueue.FirstEventTime()) {
|
||||||
// printf("node %02d waiting for %12Ld that has already happened, now %12Ld\n", ID(), fEventQueue.FirstEventTime(), system_time());
|
// printf("node %02d waiting for %12Ld that has already happened, now %12Ld\n", ID(), fEventQueue.FirstEventTime(), system_time());
|
||||||
is_realtime = false;
|
is_realtime = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (fRealTimeQueue.HasEvents() && (TimeSource()->RealTimeFor(TimeSource()->Now(),fSchedulingLatency)) >= fRealTimeQueue.FirstEventTime()) {
|
if (fRealTimeQueue.HasEvents() && (TimeSource()->RealTime() - fSchedulingLatency) >= fRealTimeQueue.FirstEventTime()) {
|
||||||
latency = fSchedulingLatency;
|
latency = fSchedulingLatency;
|
||||||
is_realtime = true;
|
is_realtime = true;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user