mutex.h File Reference

#include <isc/result.h>

Go to the source code of this file.

Defines

#define ISC_MUTEX_H   1
#define isc_mutex_init(mp)   (*(mp) = 0, ISC_R_SUCCESS)
#define isc_mutex_lock(mp)   ((*(mp))++ == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED)
#define isc_mutex_unlock(mp)   (--(*(mp)) == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED)
#define isc_mutex_trylock(mp)   (*(mp) == 0 ? ((*(mp))++, ISC_R_SUCCESS) : ISC_R_LOCKBUSY)
#define isc_mutex_destroy(mp)   (*(mp) == 0 ? (*(mp) = -1, ISC_R_SUCCESS) : ISC_R_UNEXPECTED)
#define isc_mutex_stats(fp)

Typedefs

typedef int isc_mutex_t


Define Documentation

#define ISC_MUTEX_H   1

Definition at line 19 of file mutex.h.

#define isc_mutex_init ( mp   )     (*(mp) = 0, ISC_R_SUCCESS)

Definition at line 25 of file mutex.h.

Referenced by acache_cleaner_init(), add_listener(), ATF_TC_BODY(), cache_cleaner_init(), create_stats(), createnode(), dispatch_allocate(), dispatch_createudp(), dns_acache_create(), dns_adb_create(), dns_badcache_init(), dns_byaddr_create(), dns_cache_create3(), dns_client_createx2(), dns_client_request(), dns_client_resolve(), dns_client_startrequest(), dns_client_startresolve(), dns_client_startupdate(), dns_client_update(), dns_dbtable_create(), dns_dispatchmgr_create(), dns_dispatchset_create(), dns_ecdb_create(), dns_keytable_create(), dns_lookup_create(), dns_portlist_create(), dns_requestmgr_create(), dns_resolver_create(), dns_rpz_new_zones(), dns_rrl_init(), dns_sdb_create(), dns_sdb_register(), dns_sdlzcreateDBP(), dns_sdlzregister(), dns_ssutable_create(), dns_validator_create(), dns_view_create(), dns_zone_create(), dns_zonemgr_create(), dumpctx_create(), findnode(), init_lock(), initialize(), initialize_action(), initialize_lock(), isc__app_ctxstart(), isc__task_create(), isc__taskmgr_create(), isc__timer_create(), isc__timermgr_create(), isc_counter_create(), isc_entropy_create(), isc_hash_ctxcreate(), isc_httpdmgr_create(), ISC_LIST(), isc_log_create(), isc_mutexblock_init(), isc_quota_init(), isc_ratelimiter_create(), isc_refcount_init(), isc_rng_create(), listener_create(), loadctx_create(), main(), new_adbfind(), ns_clientmgr_create(), ns_interface_create(), ns_interfacemgr_create(), ns_lwdmanager_create(), ns_lwsearchlist_create(), ns_query_init(), ns_server_create(), qid_allocate(), and setup_libs().

#define isc_mutex_lock ( mp   )     ((*(mp))++ == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED)

Definition at line 27 of file mutex.h.

#define isc_mutex_unlock ( mp   )     (--(*(mp)) == 0 ? ISC_R_SUCCESS : ISC_R_UNEXPECTED)

Definition at line 29 of file mutex.h.

#define isc_mutex_trylock ( mp   )     (*(mp) == 0 ? ((*(mp))++, ISC_R_SUCCESS) : ISC_R_LOCKBUSY)

Definition at line 31 of file mutex.h.

Referenced by violate_locking_hierarchy().

#define isc_mutex_destroy ( mp   )     (*(mp) == 0 ? (*(mp) = -1, ISC_R_SUCCESS) : ISC_R_UNEXPECTED)

Definition at line 33 of file mutex.h.

Referenced by destroy(), destroy_disp(), dns_sdb_create(), httpdmgr_destroy(), isc__app_ctxstart(), isc_httpdmgr_create(), isc_mutexblock_destroy(), and ns_clientmgr_create().

#define isc_mutex_stats ( fp   ) 

Definition at line 35 of file mutex.h.

Referenced by main().


Typedef Documentation

typedef int isc_mutex_t

Definition at line 23 of file mutex.h.


Generated on Tue Apr 28 17:41:18 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha