src/lib/watchdog.c
bool is_watchdog()
{
   if (wd_is_init && pthread_equal(pthread_self(), wd_tid)) {
      return true;
   } else {
      return false;
   }
}
/*
 * Returns: 0 if the current thread is NOT the watchdog
 *          1 if the current thread is the watchdog
 */
0 if the current thread is NOT the watchdog
1 if the current thread is the watchdog
0 if the current thread is NOT the watchdog 1 if the current thread is the watchdog
bool is_watchdog()
{
   if (wd_is_init && pthread_equal(pthread_self(), wd_tid)) {
      return true;
   } else {
      return false;
   }
}
bool is_watchdog ( ) { if ( wd_is_init && pthread_equal ( pthread_self ( ) , wd_tid ) ) { return true ; } else { return false ; } }
Returns: 0 if the current thread is NOT the watchdog
          1 if the current thread is the watchdog
Returns : 0 if the current thread is NOT the watchdog 1 if the current thread is the watchdog