16 #elif defined(HAVE_DB4_DB_H)
19 #error Neither <db.h> nor <db4/db.h> was found by configure. Install db4-devel.
23 #include "sysdep_decls.h"
26 * Things we need to keep track of per-thread instead of per-session
29 DB_TXN *tid; /* Transaction handle */
30 DBC *cursors[MAXCDB]; /* Cursors, for traversals... */
33 extern struct thread_tsd masterTSD;
34 #define TSD MyThread()
36 extern int num_workers;
37 extern int active_workers;
38 extern int server_shutting_down;
40 struct thread_tsd *MyThread(void);
41 int try_critical_section (int which_one);
42 void begin_critical_section (int which_one);
43 void end_critical_section (int which_one);
44 void go_threading(void);
45 void InitializeMasterTSD(void);
46 void CtdlThreadCreate(void *(*start_routine)(void*));
49 extern pthread_mutex_t ThreadCountMutex;;