X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fsysdep_decls.h;h=8c7e3059b348ebd9ecb3f0adf9f178380c373b44;hb=8c538eeb2d9b024970c350730b4748b870762c5f;hp=f2480f47de3bb1ca0aae85fae46ced38b75d1310;hpb=76afe54e0bbcf663a0fdf7e4c338b24f9ace4a57;p=citadel.git diff --git a/citadel/sysdep_decls.h b/citadel/sysdep_decls.h index f2480f47d..8c7e3059b 100644 --- a/citadel/sysdep_decls.h +++ b/citadel/sysdep_decls.h @@ -136,6 +136,7 @@ enum CtdlThreadState { extern struct CtdlThreadNode { pthread_t tid; /* id as returned by pthread_create() */ pid_t pid; /* pid, as best the OS will let us determine */ + time_t when; /* When to start a scheduled thread */ struct CitConext *Context; /* The session context that this thread mught be working on or NULL if none */ long number; /* A unigue number for this thread (not implimented yet) */ int wakefd_recv; /* An fd that this thread can sleep on (not implimented yet) */ @@ -177,6 +178,7 @@ void ctdl_thread_internal_cleanup(void); void ctdl_thread_internal_calc_loadavg(void); void ctdl_thread_internal_free_tsd(void); struct CtdlThreadNode *ctdl_internal_create_thread(char *name, long flags, void *(*thread_func) (void *arg), void *args); +void ctdl_thread_internal_check_scheduled(void);