exopy_hqc_legacy/instruments/drivers/dll_tools.py
def secure(self):
        """ Lock acquire and release method.

        """
        t = 0
        while not self.lock.acquire():
            time.sleep(0.1)
            t += 0.1
            if t > self.timeout:
                raise InstrIOError('Timeout in trying to acquire dll lock.')
        try:
            yield
        finally:
            self.lock.release()
 Lock acquire and release method.

        
Lock acquire and release method.
Lock acquire and release method .
def secure(self):
        t = 0
        while not self.lock.acquire():
            time.sleep(0.1)
            t += 0.1
            if t > self.timeout:
                raise InstrIOError('Timeout in trying to acquire dll lock.')
        try:
            yield
        finally:
            self.lock.release()
def secure ( self ) : t = 0 while not self . lock . acquire ( ) : time . sleep ( 0.1 ) t += 0.1 if t > self . timeout : raise InstrIOError ( 'Timeout in trying to acquire dll lock.' ) try : yield finally : self . lock . release ( )
Lock acquire and release method.
Lock acquire and release method .
""" Lock acquire and release method.

        """
self