Do not check for DB_H definition anymore.
[citadel.git] / citadel / threads.h
index d080b81e7abdff708fe6f72dd22bd0be9fe3bc0d..21e790530e90c63d7ed54aa29fc0bfdf3a05c7b4 100644 (file)
 #include <sys/time.h>
 #include <string.h>
 
-#ifdef HAVE_DB_H
 #include <db.h>
-#elif defined(HAVE_DB4_DB_H)
-#include <db4/db.h>
-#else
-#error Neither <db.h> nor <db4/db.h> was found by configure. Install db4-devel.
-#endif
 
 #include "server.h"
 #include "sysdep_decls.h"
@@ -33,14 +27,19 @@ struct thread_tsd {
 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