Obsolete sys/time.h and HAVE_TIME_WITH_SYS_TIME
[citadel.git] / citadel / server / threads.h
1
2 #ifndef THREADS_H
3 #define THREADS_H
4
5 #include "sysdep.h"
6
7 #ifdef HAVE_PTHREAD_H
8 #include <pthread.h>
9 #endif
10
11 #include <time.h>
12 #include <string.h>
13 #include "server.h"
14 #include "sysdep_decls.h"
15
16 extern int num_workers;
17 extern int active_workers;
18 extern int server_shutting_down;
19
20 //int try_critical_section (int which_one);
21 void begin_critical_section (int which_one);
22 void end_critical_section (int which_one);
23 void go_threading(void);
24 void InitializeMasterTSD(void);
25 void CtdlThreadCreate(void *(*start_routine)(void*));
26
27 extern pthread_mutex_t ThreadCountMutex;;
28
29 #endif // THREADS_H