From: Mark Andrews Date: Tue, 8 Oct 2013 01:11:09 +0000 (+1100) Subject: call isc_mutex_trylock rather than pthread_mutex_trylock X-Git-Tag: v9.10.0a1~70 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c6e6cac4ea164be7130c32731522bd72c0ad43d5;p=thirdparty%2Fbind9.git call isc_mutex_trylock rather than pthread_mutex_trylock --- diff --git a/lib/dns/zone.c b/lib/dns/zone.c index d4c22d3fa85..85bbb9d1e76 100644 --- a/lib/dns/zone.c +++ b/lib/dns/zone.c @@ -167,7 +167,7 @@ typedef struct dns_include dns_include_t; #define LOCKED_ZONE(z) ((z)->locked) #define TRYLOCK_ZONE(result, z) \ do { \ - result = pthread_mutex_trylock(&(z)->lock); \ + result = isc_mutex_trylock(&(z)->lock); \ if (result == ISC_R_SUCCESS) { \ INSIST((z)->locked == ISC_FALSE); \ (z)->locked = ISC_TRUE; \ @@ -178,7 +178,7 @@ typedef struct dns_include dns_include_t; #define UNLOCK_ZONE(z) UNLOCK(&(z)->lock) #define LOCKED_ZONE(z) ISC_TRUE #define TRYLOCK_ZONE(result, z) \ - do { result = pthread_mutex_trylock(&(z)->lock); } while (0) + do { result = isc_mutex_trylock(&(z)->lock); } while (0) #endif #ifdef ISC_RWLOCK_USEATOMIC