X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fthreads.h;h=33b854ea9cbee84d8ce5dc67f28734ae7f754f1c;hb=2e4e67a1f7f65568abace99d13a71024ad06ebde;hp=f96ab77d5bbc0c9215a2745aee9e72f8db81c278;hpb=2c9048572f22002cd287cd3137b5f7461d35455b;p=citadel.git diff --git a/citadel/threads.h b/citadel/threads.h index f96ab77d5..33b854ea9 100644 --- a/citadel/threads.h +++ b/citadel/threads.h @@ -11,13 +11,7 @@ #include #include -#ifdef HAVE_DB_H #include -#elif defined(HAVE_DB4_DB_H) -#include -#else -#error Neither nor was found by configure. Install db4-devel. -#endif #include "server.h" #include "sysdep_decls.h" @@ -30,20 +24,23 @@ struct thread_tsd { DBC *cursors[MAXCDB]; /* Cursors, for traversals... */ }; +extern pthread_key_t ThreadKey; extern struct thread_tsd masterTSD; #define TSD MyThread() extern int num_workers; extern int active_workers; +extern int server_shutting_down; struct thread_tsd *MyThread(void); int try_critical_section (int which_one); void begin_critical_section (int which_one); void end_critical_section (int which_one); void go_threading(void); -int CtdlThreadCheckStop(void); -void CtdlThreadStopAll(void); void InitializeMasterTSD(void); void CtdlThreadCreate(void *(*start_routine)(void*)); + +extern pthread_mutex_t ThreadCountMutex;; + #endif // THREADS_H