VirtualBox

Changeset 100083 in vbox


Ignore:
Timestamp:
Jun 6, 2023 2:02:59 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157772
Message:

/usb/usbgadget.py, changed taskThread and taskConnect function names to utsTaskThread and utdTaskConnet, same for used there logging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/tests/usb/usbgadget.py

    r98655 r100083  
    512512        self.fTryConnect    = fTryConnect;
    513513
    514         if not self.startTask(cMsTimeout, False, "connecting", self.taskConnect, (cMsIdleFudge,)):
     514        if not self.startTask(cMsTimeout, False, "connecting", self.utsTaskConnect, (cMsIdleFudge,)):
    515515            raise base.GenError("startTask failed");
    516516
     
    562562        self.fnTask         = fnTask;
    563563        self.aTaskArgs      = aArgs;
    564         self.oThread        = threading.Thread(target=self.taskThread, args=(), name='UTS-%s' % (sStatus,));
     564        self.oThread        = threading.Thread(target=self.utsTaskThread, args=(), name='UTS-%s' % (sStatus,));
    565565        self.oThread.setDaemon(True); # pylint: disable=deprecated-method
    566566        self.msStart        = base.timestampMilli();
     
    608608        return oThread.is_alive();
    609609
    610     def taskThread(self):
     610    def utsTaskThread(self):
    611611        """
    612612        The task thread function.
     
    618618                oTaskRc = fnTask(*self.aTaskArgs);
    619619            except:
    620                 reporter.fatalXcpt('taskThread', 15);
     620                reporter.fatalXcpt('utsTaskThread', 15);
    621621                oTaskRc = None;
    622622        else:
    623             reporter.log('taskThread: cancelled already');
     623            reporter.log('utsTaskThread: cancelled already');
    624624
    625625        self.lockTask();
    626626
    627         reporter.log('taskThread: signalling task with status "%s", oTaskRc=%s' % (self.sStatus, oTaskRc));
     627        reporter.log('utsTaskThread: signalling task with status "%s", oTaskRc=%s' % (self.sStatus, oTaskRc));
    628628        self.oTaskRc = oTaskRc;
    629629        self.oThread = None;
     
    760760    #
    761761
    762     def taskConnect(self, cMsIdleFudge):
     762    def utsTaskConnect(self, cMsIdleFudge):
    763763        """Tries to connect to the UTS"""
    764764        while not self.isCancelled():
    765             reporter.log2('taskConnect: connecting ...');
     765            reporter.log2('utsTaskConnect: connecting ...');
    766766            rc = self.oTransport.connect(self.getMsLeft(500));
    767767            if rc is True:
    768                 reporter.log('taskConnect: succeeded');
     768                reporter.log('utsTaskConnect: succeeded');
    769769                return self.taskGreet(cMsIdleFudge);
    770770            if rc is None:
    771                 reporter.log2('taskConnect: unable to connect');
     771                reporter.log2('utsTaskConnect: unable to connect');
    772772                return None;
    773773            if self.hasTimedOut():
    774                 reporter.log2('taskConnect: timed out');
     774                reporter.log2('utsTaskConnect: timed out');
    775775                if not self.fTryConnect:
    776                     reporter.maybeErr(self.fErr, 'taskConnect: timed out');
     776                    reporter.maybeErr(self.fErr, 'utsTaskConnect: timed out');
    777777                return False;
    778778            time.sleep(self.getMsLeft(1, 1000) / 1000.0);
    779779        if not self.fTryConnect:
    780             reporter.maybeErr(self.fErr, 'taskConnect: cancelled');
     780            reporter.maybeErr(self.fErr, 'utsTaskConnect: cancelled');
    781781        return False;
    782782
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette