X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fthreads.h;h=5540d27a83568efd99076ab21c8cbcc7eaaa46e8;hb=HEAD;hp=33b854ea9cbee84d8ce5dc67f28734ae7f754f1c;hpb=1e99d3eab849c3c41341d2d9b055ea7ee6a058a3;p=citadel.git diff --git a/citadel/threads.h b/citadel/threads.h deleted file mode 100644 index 33b854ea9..000000000 --- a/citadel/threads.h +++ /dev/null @@ -1,46 +0,0 @@ - -#ifndef THREADS_H -#define THREADS_H - -#include "sysdep.h" - -#ifdef HAVE_PTHREAD_H -#include -#endif - -#include -#include - -#include - -#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 pthread_key_t ThreadKey; -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