Show
Ignore:
Timestamp:
06/23/12 07:03:54 (8 years ago)
Author:
jwoithe
Message:

A second pass at addressing ticket #242. Define a global clock source within the SystemTimeSource? object and use this whenever clock_gettime() is called. On systems which support the new raw1394_read_cycle_timer_and_clock() libraw1394 call and CLOCK_MONOTONIC_RAW, these changes should ensure that all timing-sensitive parts of FFADO are using the same clock source. System tests under tests/systemtests/ have not been converted to use this new framework because they exist for different purposes and are not using the FFADO streaming infrastructure.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libieee1394/IsoHandlerManager.cpp

    r2076 r2171  
    398398    int result; 
    399399 
    400     if (clock_gettime(CLOCK_REALTIME, &ts) == -1) { 
     400    if (Util::SystemTimeSource::clockGettime(&ts) == -1) { 
    401401        debugError("clock_gettime failed\n"); 
    402402        return eAR_Error;