def niDigital_LockSession(self, vi, caller_has_lock):
    with self._func_lock:
        if (self.niDigital_LockSession_cfunc is None):
            self.niDigital_LockSession_cfunc = self._get_library_function('niDigital_LockSession')
            self.niDigital_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)]
            self.niDigital_LockSession_cfunc.restype = ViStatus
    return self.niDigital_LockSession_cfunc(vi, caller_has_lock)
def niDigital_LockSession(self, vi, caller_has_lock):
    with self._func_lock:
        if (self.niDigital_LockSession_cfunc is None):
            self.niDigital_LockSession_cfunc = self._get_library_function('niDigital_LockSession')
            self.niDigital_LockSession_cfunc.argtypes = [ViSession, ctypes.POINTER(ViBoolean)]
            self.niDigital_LockSession_cfunc.restype = ViStatus
    return self.niDigital_LockSession_cfunc(vi, caller_has_lock)