X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fsysdep_decls.h;h=ab8745c790c5e0ee1073ddc3b0190c287d441bc9;hp=630d117e3385eaf34ee0f6bb838f1ad10bc5949e;hb=4b922c4d6262b1b1cc13f13b7e43b8b6ae19751f;hpb=c0919246bf2026693a4f9e34c306b0dd41cfb546 diff --git a/citadel/sysdep_decls.h b/citadel/sysdep_decls.h index 630d117e3..ab8745c79 100644 --- a/citadel/sysdep_decls.h +++ b/citadel/sysdep_decls.h @@ -84,6 +84,8 @@ void InitializeMasterCC(void); void init_master_fdset(void); void create_worker(void); void InitialiseSemaphores(void); +void ctdl_internal_thread_gc (int shutdown); + extern int num_sessions; extern volatile int time_to_die; @@ -99,6 +101,19 @@ extern struct worker_node { struct worker_node *next; } *worker_list; + +extern struct CtdlThreadNode { + pthread_t tid; + char *name; + void *(*thread_func) (void *arg); + void *user_args; + int flags; + int running; + int valid; + struct CtdlThreadNode *prev; + struct CtdlThreadNode *next; +} *CtdlThreadList; + extern int SyslogFacility(char *name); extern int syslog_facility;