From 3a8cf08360c020b17ed39dbd6649480d092dd985 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Sat, 20 Dec 2014 18:50:16 -0500 Subject: [PATCH] No longer use pthread_mutex_timedlock(). It prevents thread cancellation for longer wait times. Instead, rely on usleep() for the cancellation test point. --- src/mutex.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/mutex.h b/src/mutex.h index 3b239359..69302d95 100644 --- a/src/mutex.h +++ b/src/mutex.h @@ -24,6 +24,10 @@ #include #endif +/* Cant test thread cancellation so disable it for now. usleep() is a POSIX + * cancellation point. */ +#undef HAVE_PTHREAD_MUTEX_TIMEDLOCK + #ifdef HAVE_PTHREAD_MUTEX_TIMEDLOCK #include #endif -- 2.11.4.GIT