More of the same. I think it's time to reduce complexity here.
authorArt Cancro <ajc@citadel.org>
Mon, 20 Sep 2010 17:34:08 +0000 (13:34 -0400)
committerArt Cancro <ajc@citadel.org>
Mon, 20 Sep 2010 17:34:08 +0000 (13:34 -0400)
citadel/modules/extnotify/extnotify_main.c
citadel/modules/pop3client/serv_pop3client.c
citadel/modules/rssclient/serv_rssclient.c

index 1ceca2ca8a80c90d972ed8268437704553bbb869..3e80ef4d775e628f5c977928d8b4652c79ceaf7e 100644 (file)
@@ -136,11 +136,11 @@ StrBuf** GetNotifyHosts(void)
 }
 
 
-/*! \brief Create the notify message queue. We use the exact same room
- *                     as the Funambol module.
+/* Create the notify message queue. We use the exact same room
+ * as the Funambol module.
  *
- *     Run at server startup, creates FNBL_QUEUE_ROOM if it doesn't exist
- *     and sets as system room.
+ * Run at server startup, creates FNBL_QUEUE_ROOM if it doesn't exist
+ * and sets as system room.
  */
 void create_extnotify_queue(void) {
        struct ctdlroom qrbuf;
@@ -165,7 +165,6 @@ void do_extnotify_queue(void)
        NotifyContext Ctx;
        static int doing_queue = 0;
        int i = 0;
-       CitContext extnotifyCC;
     
        /*
         * This is a simple concurrency check to make sure only one queue run
@@ -176,10 +175,6 @@ void do_extnotify_queue(void)
        if (doing_queue) return;
        doing_queue = 1;
 
-       /* Give this thread its own private CitContext */
-       CtdlFillSystemContext(&extnotifyCC, "extnotify");
-       citthread_setspecific(MyConKey, (void *)&extnotifyCC );
-    
        /*
         * Go ahead and run the queue
         */
@@ -220,10 +215,10 @@ void do_extnotify_queue(void)
 
        CtdlLogPrintf(CTDL_DEBUG, "serv_extnotify: queue run completed\n");
        doing_queue = 0;
-       CtdlClearSystemContext();
 }
-/*!
- * \brief Process messages in the external notification queue
+
+/*
+ * Process messages in the external notification queue
  */
 void process_notify(long NotifyMsgnum, void *usrdata) 
 {
index c6b349c6ce9468fc12a71da9b986d0bd775ef763..0b2eb99be648be621704b725f3313e757d2e8a76 100644 (file)
@@ -306,11 +306,6 @@ void pop3client_scan(void) {
        static int doing_pop3client = 0;
        struct pop3aggr *pptr;
        time_t fastest_scan;
-       CitContext popclientCC;
-
-       /* Give this thread its own private CitContext */
-       CtdlFillSystemContext(&popclientCC, "popclient");
-       citthread_setspecific(MyConKey, (void *)&popclientCC );
 
        if (config.c_pop3_fastest < config.c_pop3_fetch)
                fastest_scan = config.c_pop3_fastest;
@@ -349,7 +344,6 @@ void pop3client_scan(void) {
        CtdlLogPrintf(CTDL_DEBUG, "pop3client ended\n");
        last_run = time(NULL);
        doing_pop3client = 0;
-       CtdlClearSystemContext();
 }
 
 
index 049f8801c7f0d40e834e5b0ac080b18ac2a77885..0d8442b41551ba101e2c46196c56594a3dbf26fb 100644 (file)
@@ -1269,11 +1269,6 @@ void rssclient_scan(void *args) {
        static time_t last_run = 0L;
        static int doing_rssclient = 0;
        rssnetcfg *rptr = NULL;
-       CitContext rssclientCC;
-
-       /* Give this thread its own private CitContext */
-       CtdlFillSystemContext(&rssclientCC, "rssclient");
-       citthread_setspecific(MyConKey, (void *)&rssclientCC );
 
        /*
         * This is a simple concurrency check to make sure only one rssclient run
@@ -1298,7 +1293,6 @@ void rssclient_scan(void *args) {
        CtdlLogPrintf(CTDL_DEBUG, "rssclient ended\n");
        last_run = time(NULL);
        doing_rssclient = 0;
-       CtdlClearSystemContext();
        return NULL;
 }