From 583d6f504924328b6c494639dafe9fa73be71993 Mon Sep 17 00:00:00 2001 From: Ben Kibbey Date: Tue, 30 Aug 2016 19:41:15 -0400 Subject: [PATCH] Test for cancellation in timed mutex locks. When pthread_cancel() is unavailable. --- src/mutex.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mutex.h b/src/mutex.h index fe5cfb24..d32cbfc5 100644 --- a/src/mutex.h +++ b/src/mutex.h @@ -111,6 +111,7 @@ if (rc) \ break; \ } \ + TEST_CANCEL(); \ } \ else if (n == -1) \ rc = gpg_error_from_errno (errno); \ @@ -139,6 +140,7 @@ if (rc) \ break; \ } \ + TEST_CANCEL(); \ } \ else { \ MUTEX_LOCK_DEBUG(m); \ -- 2.11.4.GIT