Changeset 939

Show
Ignore:
Timestamp:
03/12/08 06:26:23 (13 years ago)
Author:
ppalmers
Message:

implement RT thread watchdog

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/config.h.in

    r938 r939  
    3939#define DEBUG_EXTREME_ENABLE        0 
    4040 
     41// watchdog 
     42#define WATCHDOG_DEFAULT_CHECK_INTERVAL_USECS   (1000*1000*4) 
     43#define WATCHDOG_DEFAULT_RUN_REALTIME           1 
     44#define WATCHDOG_DEFAULT_PRIORITY               98 
     45 
     46// 1394 service constants  
    4147#define IEEE1394SERVICE_USE_CYCLETIMER_DLL  1 
    4248#define IEEE1394SERVICE_CYCLETIMER_DLL_UPDATE_INTERVAL_USEC 200000 
  • trunk/libffado/src/debugmodule/debugmodule.h

    r866 r939  
    118118 
    119119#define DECLARE_DEBUG_MODULE static DebugModule m_debugModule 
     120#define DECLARE_DEBUG_MODULE_REFERENCE DebugModule &m_debugModule 
    120121#define IMPL_DEBUG_MODULE( ClassName, RegisterName, Level )        \ 
    121122                DebugModule ClassName::m_debugModule =             \ 
  • trunk/libffado/src/libutil/PosixThread.cpp

    r888 r939  
    181181    struct sched_param rtparam; 
    182182    int res; 
     183    debugOutput( DEBUG_LEVEL_VERBOSE, "(%p) Aquire realtime, prio %d\n", this, fPriority); 
    183184 
    184185    if (!fThread) 
     
    209210    struct sched_param rtparam; 
    210211    int res; 
     212    debugOutput( DEBUG_LEVEL_VERBOSE, "(%p) Drop realtime\n", this); 
    211213 
    212214    if (!fThread) 
  • trunk/libffado/src/SConscript

    r864 r939  
    8181        libutil/TimeSource.cpp \ 
    8282        libutil/TimestampedBuffer.cpp \ 
     83        libutil/Watchdog.cpp \ 
    8384        libcontrol/Element.cpp \ 
    8485        libcontrol/BasicElements.cpp \ 
  • trunk/libffado/tests/SConscript

    r922 r939  
    5252        "test-streamdump" : "test-streamdump.cpp", 
    5353        "test-bufferops" : "test-bufferops.cpp", 
     54        "test-watchdog" : "test-watchdog.cpp", 
    5455        "dumpiso_mod" : "dumpiso_mod.cpp" 
    5556}