X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Flib%2Fwaitq.h;h=0691f455df64993b250fced6348a2d107c08132c;hb=458061b568c4451c7f1d2212879645b2625651fb;hp=152b66e3af5a90707e3c0a84cabf462383c55db6;hpb=1ef84681d13d0c355d6ae78579d2afe1c8d8d0e2;p=bacula%2Fbacula diff --git a/bacula/src/lib/waitq.h b/bacula/src/lib/waitq.h index 152b66e3af..0691f455df 100644 --- a/bacula/src/lib/waitq.h +++ b/bacula/src/lib/waitq.h @@ -7,6 +7,8 @@ * This code inspired from "Programming with POSIX Threads", by * David R. Butenhof * + * Version $Id$ + * */ /* Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker @@ -36,20 +38,20 @@ */ typedef struct waitq_ele_tag { struct waitq_ele_tag *next; - int done_flag; /* predicate for wait */ - pthread_cont_t done; /* wait for completion */ - void *msg; /* message to be passed */ + int done_flag; /* predicate for wait */ + pthread_cont_t done; /* wait for completion */ + void *msg; /* message to be passed */ } waitq_ele_t; /* * Structure describing a wait queue */ typedef struct workq_tag { - pthread_mutex_t mutex; /* queue access control */ - pthread_cond_t wait_req; /* wait for OK */ - int num_msgs; /* number of waiters */ - waitq_ele_t *first; /* wait queue first item */ - waitq_ele_t *last; /* wait queue last item */ + pthread_mutex_t mutex; /* queue access control */ + pthread_cond_t wait_req; /* wait for OK */ + int num_msgs; /* number of waiters */ + waitq_ele_t *first; /* wait queue first item */ + waitq_ele_t *last; /* wait queue last item */ } workq_t; extern int waitq_init(waitq_t *wq);