17 #include "sysdep_decls.h"
20 * Things we need to keep track of per-thread instead of per-session
23 DB_TXN *tid; /* Transaction handle */
24 DBC *cursors[MAXCDB]; /* Cursors, for traversals... */
27 extern struct thread_tsd masterTSD;
28 #define TSD MyThread()
30 extern int num_workers;
31 extern int active_workers;
32 extern int server_shutting_down;
34 struct thread_tsd *MyThread(void);
35 int try_critical_section (int which_one);
36 void begin_critical_section (int which_one);
37 void end_critical_section (int which_one);
38 void go_threading(void);
39 void InitializeMasterTSD(void);
40 void CtdlThreadCreate(void *(*start_routine)(void*));
43 extern pthread_mutex_t ThreadCountMutex;;