]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
call isc_mutex_trylock rather than pthread_mutex_trylock
authorMark Andrews <marka@isc.org>
Tue, 8 Oct 2013 01:11:09 +0000 (12:11 +1100)
committerMark Andrews <marka@isc.org>
Tue, 8 Oct 2013 01:11:09 +0000 (12:11 +1100)
lib/dns/zone.c

index d4c22d3fa85a02d812979e87b9f4d806cb32e226..85bbb9d1e76f9d03fda3137a90c4f9397aeb2117 100644 (file)
@@ -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