]> code.citadel.org Git - citadel.git/commitdiff
* just some cosmetics
authorArt Cancro <ajc@citadel.org>
Wed, 13 Dec 2000 03:31:58 +0000 (03:31 +0000)
committerArt Cancro <ajc@citadel.org>
Wed, 13 Dec 2000 03:31:58 +0000 (03:31 +0000)
citadel/sysdep.c

index 455faf75935c306704df1e3fe47df19f727bdcb8..c2a4ca37f46f754a48adc6a7507e773f87e30f7b 100644 (file)
@@ -1000,6 +1000,7 @@ int main(int argc, char **argv)
         * Now create a bunch of worker threads.
         */
        for (i=0; i<(config.c_min_workers-1); ++i) {
+               lprintf(9, "Creating worker thread %d\n", i);
                pthread_attr_init(&attr);
                        pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
                if (pthread_create(&WorkerThread, &attr,
@@ -1011,6 +1012,7 @@ int main(int argc, char **argv)
 
 
        /* Now this thread can become a worker as well. */
+       lprintf(9, "Original thread entering worker loop\n");
        worker_thread();
 
        return(0);
@@ -1048,7 +1050,6 @@ void worker_thread(void) {
 
        while (!time_to_die) {
 
-
                /* 
                 * A naive implementation would have all idle threads
                 * calling select() and then they'd all wake up at once.  We