From: Laurent MAZET Date: Thu, 2 Oct 2025 17:27:16 +0000 (+0200) Subject: rework mutex test X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=19fbd8ef43f20a0d06489a1396d04bb3767349a9;p=benchmarks.git rework mutex test --- diff --git a/mutex.c b/mutex.c index 666fcb5..9d8a488 100644 --- a/mutex.c +++ b/mutex.c @@ -19,7 +19,6 @@ void (*usage_ext) (FILE *) = NULL; int (*parse_arg_ext) (char *) = NULL; pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; -pthread_mutex_t event = PTHREAD_MUTEX_INITIALIZER; volatile int shared_flag = 0; ts_t ts1, ts2; int try = 0; @@ -106,7 +105,6 @@ int test (dts_t *buffer, int nb) pthread_join (taker_thread, NULL); pthread_mutex_destroy (&mutex); - pthread_mutex_destroy (&event); printf ("Too fast: %d\n", nbtoofast);