X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fthreads.h;fp=citadel%2Fthreads.h;h=65c5689fac86c639e3e7a23458a6244a0a5dad85;hb=7e5d9e93cc7fdc560eac95647fe329d818444226;hp=c9e683cf524e2adcf98c67222449347262ea0ee5;hpb=b4d882d541fff286c3b3bc9de34c2881b32bd3e4;p=citadel.git diff --git a/citadel/threads.h b/citadel/threads.h index c9e683cf5..65c5689fa 100644 --- a/citadel/threads.h +++ b/citadel/threads.h @@ -23,6 +23,8 @@ #include "server.h" #include "sysdep_decls.h" +// #define THREADS_USESIGNALS + /* * Thread stuff */ @@ -56,7 +58,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 */ + time_t 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 */