]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/lib/btimers.h
ebl add sql_escape to catalog messages
[bacula/bacula] / bacula / src / lib / btimers.h
1 /*
2  * Process and thread timer routines, built on top of watchdogs.
3  *
4  *    Nic Bellamy <nic@bellamy.co.nz>, October 2003.
5  *
6 */
7 /*
8    Copyright (C) 2000-2006 Kern Sibbald
9
10    This program is free software; you can redistribute it and/or
11    modify it under the terms of the GNU General Public License
12    version 2 as amended with additional clauses defined in the
13    file LICENSE in the main source directory.
14
15    This program is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 
18    the file LICENSE for additional details.
19
20  */
21
22 typedef struct s_btimer_t {
23    watchdog_t *wd;                    /* Parent watchdog */
24    int type;
25    bool killed;
26    pid_t pid;                         /* process id if TYPE_CHILD */
27    pthread_t tid;                     /* thread id if TYPE_PTHREAD */
28    BSOCK *bsock;                      /* Pointer to BSOCK */
29 } btimer_t;
30
31 /* EOF */