From: Art Cancro Date: Mon, 28 Aug 2023 01:03:01 +0000 (-0400) Subject: Removed extra diagnostics X-Git-Tag: v989~33 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=9a1f31a28f8c4d9821dbd4c71e9adb1164ecc942;p=citadel.git Removed extra diagnostics --- diff --git a/citadel/server/threads.c b/citadel/server/threads.c index ed229c19e..8c1866498 100644 --- a/citadel/server/threads.c +++ b/citadel/server/threads.c @@ -57,22 +57,13 @@ void begin_critical_section(int which_one) { cdb_check_handles(); } - struct timeval t1,t2; - syslog(LOG_DEBUG, "\033[33mthreads: lock %d requested\033[0m", which_one); - gettimeofday(&t1, NULL); - long ms1 = (t1.tv_sec * 1000) + t1.tv_usec; pthread_mutex_lock(&Critters[which_one]); - gettimeofday(&t2, NULL); - long ms2 = (t2.tv_sec * 1000) + t2.tv_usec; - syslog(LOG_DEBUG, "\033[32mthreads: lock %d acquired in %ld milliseconds\033[0m", which_one, ms2-ms1); - } // Release a semaphore lock to end a critical section. void end_critical_section(int which_one) { pthread_mutex_unlock(&Critters[which_one]); - syslog(LOG_DEBUG, "\033[31mthreads: lock %d released\033[0m", which_one); }