Changeset 5619:16fe78ec277c in roaraudio for libroar/libroar.c


Ignore:
Timestamp:
08/09/12 00:01:15 (12 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

Implemented watchdog (Closes: #291)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/libroar.c

    r5390 r5619  
    107107 struct timespec left; 
    108108 
    109  if ( t > (uint_least32_t)1000000 ) { 
     109 if ( t >= (uint_least32_t)1000000 ) { 
    110110  tv.tv_sec  = t/(uint_least32_t)1000000; 
    111111  t         -= tv.tv_sec*(uint_least32_t)1000000; 
     
    321321    errname = "Memory double freed"; 
    322322   break; 
     323  case ROAR_FATAL_ERROR_WATCHDOG: 
     324    errname = "Watchdog Timeout"; 
     325   break; 
    323326  default: 
    324327    errname = "<unknown error code, BAD>"; 
     
    332335#endif 
    333336 abort(); 
     337#ifdef ROAR_HAVE_U_EXIT 
     338 ROAR_U_EXIT(1); 
     339#endif 
    334340 
    335341 while(1); 
Note: See TracChangeset for help on using the changeset viewer.