X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=memcached%2Fassoc.c;h=bcaf6f2692e4b4785b4580b07ba034a2f31c089f;hb=168937e6c8d09d126458a4b698ce46f6e9560cf2;hp=f14d85d80a20168420f907924c5a505cd49f420f;hpb=015b6142ad6c3b496437d397416aacb776a42aed;p=m6w6%2Flibmemcached diff --git a/memcached/assoc.c b/memcached/assoc.c index f14d85d8..bcaf6f26 100644 --- a/memcached/assoc.c +++ b/memcached/assoc.c @@ -12,7 +12,6 @@ */ #include "memcached.h" - #include #include #include @@ -28,13 +27,6 @@ static pthread_cond_t maintenance_cond = PTHREAD_COND_INITIALIZER; -#ifndef __INTEL_COMPILER -#pragma GCC diagnostic ignored "-Wstrict-aliasing" -#endif - -#ifndef __INTEL_COMPILER -#pragma GCC diagnostic ignored "-Wunused-parameter" -#endif typedef unsigned long int ub4; /* unsigned 4-byte quantities */ typedef unsigned char ub1; /* unsigned 1-byte quantities */ @@ -243,7 +235,7 @@ static void *assoc_maintenance_thread(void *arg) { pthread_cond_wait(&maintenance_cond, &cache_lock); } - pthread_mutex_unlock(&cache_lock); + mutex_unlock(&cache_lock); } return NULL; } @@ -271,7 +263,7 @@ void stop_assoc_maintenance_thread() { mutex_lock(&cache_lock); do_run_maintenance_thread = 0; pthread_cond_signal(&maintenance_cond); - pthread_mutex_unlock(&cache_lock); + mutex_unlock(&cache_lock); /* Wait for the maintenance thread to stop */ pthread_join(maintenance_tid, NULL);