X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fthreads.h;h=33b854ea9cbee84d8ce5dc67f28734ae7f754f1c;hb=HEAD;hp=d080b81e7abdff708fe6f72dd22bd0be9fe3bc0d;hpb=d04e1208cf6c71816adb600c6493c48c7b9610f1;p=citadel.git diff --git a/citadel/threads.h b/citadel/threads.h deleted file mode 100644 index d080b81e7..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 - -#ifdef HAVE_DB_H -#include -#elif defined(HAVE_DB4_DB_H) -#include -#else -#error Neither nor was found by configure. Install db4-devel. -#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() - -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); -int CtdlThreadCheckStop(void); -void CtdlThreadStopAll(void); -void InitializeMasterTSD(void); -void CtdlThreadCreate(void *(*start_routine)(void*)); - -#endif // THREADS_H