def DNSServiceCreateConnection():
 _global_lock.acquire()
 try:
  sdRef = _DNSServiceCreateConnection()
 finally:
  _global_lock.release()
 return sdRef

def DNSServiceCreateConnection ( ) : _global_lock . acquire ( ) try : sdRef = _DNSServiceCreateConnection ( ) finally : _global_lock . release ( ) return sdRef
create a connection to the daemon allowing efficient registration of multiple individual records .