X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fthreads.c;h=d995c39826fc5795698bd2793c4c9f74ffa42b0a;hp=aec41a7c4d92b57292f6fc99e04a5ada5b025626;hb=6ee6b5fc488f5286ea81ef95503c91c43c434ced;hpb=fe70bc8314205d9c32da7c73e5bf1c58ee1a67f6 diff --git a/citadel/threads.c b/citadel/threads.c index aec41a7c4..d995c3982 100644 --- a/citadel/threads.c +++ b/citadel/threads.c @@ -144,8 +144,7 @@ void InitializeMasterTSD(void) { /* * Initialize the thread system */ -void go_threading(void) -{ +void go_threading(void) { pthread_mutex_init(&ThreadCountMutex, NULL); /* Second call to module init functions now that threading is up */ @@ -172,14 +171,4 @@ void go_threading(void) /* We used to wait for all threads to exit. Fuck that. The only thing important is that the databases are * cleanly unmounted. After that, exit the whole program. */ -#if 0 - int countdown = 30; - while ( (num_workers > 0) && (countdown-- > 0)) { - syslog(LOG_DEBUG, "Waiting %d seconds for %d worker threads to exit", - countdown, num_workers - ); - usleep(1000000); - } -#endif - }