X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fthreads.h;h=21e790530e90c63d7ed54aa29fc0bfdf3a05c7b4;hb=HEAD;hp=28f73b520f5dc2278d6e36557a230b356a8d5968;hpb=50ff39d933b7178377b3a67f8edc31ffa42ffd28;p=citadel.git diff --git a/citadel/threads.h b/citadel/threads.h deleted file mode 100644 index 28f73b520..000000000 --- a/citadel/threads.h +++ /dev/null @@ -1,48 +0,0 @@ - -#ifndef THREADS_H -#define THREADS_H - -#include "sysdep.h" - -#ifdef HAVE_PTHREAD_H -#include -#endif - -#include -#include - -#ifdef HAVE_DB_H -#include -#error was not found by configure. Install the Berkeley DB development package. -#endif - -#include "server.h" -#include "sysdep_decls.h" - -/* - * Things we need to keep track of per-thread instead of per-session - */ -struct thread_tsd { - DB_TXN *tid; /* Transaction handle */ - DBC *cursors[MAXCDB]; /* Cursors, for traversals... */ -}; - -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); -void InitializeMasterTSD(void); -void CtdlThreadCreate(void *(*start_routine)(void*)); - - -extern pthread_mutex_t ThreadCountMutex;; - -#endif // THREADS_H