From 34f3f09b990c1f3470c2c34327c1031b4cd41afd Mon Sep 17 00:00:00 2001 From: Dave West Date: Fri, 30 Nov 2007 22:43:11 +0000 Subject: [PATCH] Clean up in sysdep_decls.h --- citadel/sysdep_decls.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/citadel/sysdep_decls.h b/citadel/sysdep_decls.h index f6b5b8d92..023ac6433 100644 --- a/citadel/sysdep_decls.h +++ b/citadel/sysdep_decls.h @@ -108,14 +108,6 @@ extern struct worker_node { */ #define CTDLTHREAD_BIGSTACK 0x0001 #define CTDLTHREAD_WORKER 0x0002 -extern double CtdlThreadLoadAvg; -extern double CtdlThreadWorkerAvg; - -void ctdl_internal_thread_gc (void); -void ctdl_thread_internal_init(void); -void ctdl_thread_internal_cleanup(void); -void ctdl_thread_internal_calc_loadavg(void); -struct CtdlThreadNode *ctdl_internal_create_thread(char *name, long flags, void *(*thread_func) (void *arg), void *args); enum CtdlThreadState { CTDL_THREAD_INVALID, @@ -142,7 +134,7 @@ extern struct CtdlThreadNode { void *(*thread_func) (void *arg); /* The actual function that does this threads work */ void *user_args; /* Arguments passed to this threads work function */ long flags; /* Flags that describe this thread */ - enum CtdlThreadState state; /* Flag to show state of this thread */ + enum CtdlThreadState state; /* Flag to show state of this thread */ pthread_mutex_t ThreadMutex; /* A mutex to sync this thread to others if this thread allows (also used for sleeping) */ pthread_cond_t ThreadCond; /* A condition variable to sync this thread with others (also used for sleeping) */ pthread_attr_t attr; /* Attributes of this thread */ @@ -156,6 +148,18 @@ extern struct CtdlThreadNode { struct CtdlThreadNode *next; /* Next thread in the thread table */ } *CtdlThreadList; + +extern double CtdlThreadLoadAvg; +extern double CtdlThreadWorkerAvg; + +void ctdl_internal_thread_gc (void); +void ctdl_thread_internal_init(void); +void ctdl_thread_internal_cleanup(void); +void ctdl_thread_internal_calc_loadavg(void); +struct CtdlThreadNode *ctdl_internal_create_thread(char *name, long flags, void *(*thread_func) (void *arg), void *args); + + + extern int SyslogFacility(char *name); extern int syslog_facility; -- 2.39.2