When doing shutdown we allow each thread up to 5 seconds to exit on its
[citadel.git] / citadel / threads.h
index 5a38316189311828408744cd85c9ebebdd7d1bc8..c9e683cf524e2adcf98c67222449347262ea0ee5 100644 (file)
@@ -56,6 +56,7 @@ struct CtdlThreadNode{
        void *user_args;                        /* Arguments passed to this threads work function */
        long flags;                             /* Flags that describe this thread */
        enum CtdlThreadState state;             /* Flag to show state of this thread */
+       int stop_ticker;                        /* A counter to determine how long it has taken for this thread to exit */
        citthread_mutex_t ThreadMutex;          /* A mutex to sync this thread to others if this thread allows (also used for sleeping) */
        citthread_cond_t ThreadCond;            /* A condition variable to sync this thread with others */
        citthread_mutex_t SleepMutex;           /* A mutex for sleeping */