Changeset 1281

Show
Ignore:
Timestamp:
07/10/08 04:31:13 (13 years ago)
Author:
ppalmers
Message:

re-init DLL when a too large error is found (e.g. process was suspended)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/libffado-2.0/src/libieee1394/CycleTimerHelper.cpp

    r1184 r1281  
    418418        } 
    419419        m_first_run = false; 
     420    } else if (diff_ticks > 20.0*m_ticks_per_update) { 
     421        debugOutput(DEBUG_LEVEL_VERBOSE, 
     422                    "re-init dll due to too large tick diff: %f >> %f\n", 
     423                    diff_ticks, (float)(20.0*m_ticks_per_update)); 
     424        if(!initDLL()) { 
     425            debugError("(%p) Could not init DLL\n", this); 
     426            return false; 
     427        } 
    420428    } else { 
    421429        // calculate next sleep time