]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/lib/watchdog.h
Add new hash table class
[bacula/bacula] / bacula / src / lib / watchdog.h
index e921bdeafb85937cb96da6cd4ed388d9e5f56a4b..8d39d38bda8d1254e3559f48169012987cb36086 100644 (file)
 
  */
 
+#define TYPE_CHILD   1
+#define TYPE_PTHREAD 2
+
+#define TIMEOUT_SIGNAL SIGUSR2
+
 typedef struct s_btimer_t {
    struct s_btimer_t *next;
    struct s_btimer_t *prev;
    time_t start_time;
    int32_t  wait;
-   pid_t pid;
+   pid_t pid;                        /* process id if TYPE_CHILD */
    int killed;
+   int type;
+   pthread_t tid;                    /* thread id if TYPE_PTHREAD */
 } btimer_t;
 
 #define btimer_id btimer_t *