]> code.citadel.org Git - citadel.git/blobdiff - citadel/sysdep.c
* Scheduler: when next_session is to be deleted, make it point to some
[citadel.git] / citadel / sysdep.c
index b9e6079fc58f6a8cecdd431217eb8511fc51498c..9c281673539412fc8996b27275bb71ad3c8a7737 100644 (file)
@@ -103,6 +103,8 @@ pthread_t initial_thread;           /* tid for main() thread */
 
 int syslog_facility = (-1);
 
+/* This is synchronized below; it helps implement round robin mode */
+extern struct CitContext* next_session;
 
 /*
  * lprintf()  ...   Write logging information
@@ -905,8 +907,6 @@ void *worker_thread(void *arg) {
        int i;
        char junk;
        int highest;
-       /* This is synchronized below; it helps implement round robin mode */
-       static struct CitContext* next_session = NULL;
        struct CitContext *ptr;
        struct CitContext *bind_me = NULL;
        fd_set readfds;