Ticket #6612: TVRec_EventLoop_timeout_while_WaitingForSignal.diff

File TVRec_EventLoop_timeout_while_WaitingForSignal.diff, 785 bytes (added by Shane Shrybman, 11 years ago)

Shorten the timeout for the main TVRec EventLoop? wait when waiting for signal

  • mythtv/libs/libmythtv/tv_rec.cpp

    void TVRec::RunTV(void) 
    15251525        // WaitforEventThreadSleep() will still work...
    15261526        if (tuningRequests.empty() && !changeState)
    15271527        {
     1528            unsigned long time = HasFlags(kFlagWaitingForSignal) ? 100 : 1000;
    15281529            triggerEventSleep.wakeAll();
    15291530            lock.mutex()->unlock();
    15301531            sched_yield();
    15311532            triggerEventSleep.wakeAll();
    1532             triggerEventLoop.wait(&mutex, 1000 /* ms */);
     1533            triggerEventLoop.wait(&mutex, time /* ms */);
    15331534            lock.mutex()->lock();
    15341535        }
    15351536    }