16 #error <db.h> was not found by configure. Install the Berkeley DB development package.
20 #include "sysdep_decls.h"
23 * Things we need to keep track of per-thread instead of per-session
26 DB_TXN *tid; /* Transaction handle */
27 DBC *cursors[MAXCDB]; /* Cursors, for traversals... */
30 extern struct thread_tsd masterTSD;
31 #define TSD MyThread()
33 extern int num_workers;
34 extern int active_workers;
35 extern int server_shutting_down;
37 struct thread_tsd *MyThread(void);
38 int try_critical_section (int which_one);
39 void begin_critical_section (int which_one);
40 void end_critical_section (int which_one);
41 void go_threading(void);
42 void InitializeMasterTSD(void);
43 void CtdlThreadCreate(void *(*start_routine)(void*));
46 extern pthread_mutex_t ThreadCountMutex;;