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 pthread_key_t ThreadKey;
28 extern struct thread_tsd masterTSD;
29 #define TSD MyThread()
31 extern int num_workers;
32 extern int active_workers;
33 extern int server_shutting_down;
35 struct thread_tsd *MyThread(void);
36 int try_critical_section (int which_one);
37 void begin_critical_section (int which_one);
38 void end_critical_section (int which_one);
39 void go_threading(void);
40 void InitializeMasterTSD(void);
41 void CtdlThreadCreate(void *(*start_routine)(void*));
44 extern pthread_mutex_t ThreadCountMutex;;