def launchSystemController():
    ## Starting the system controller
    # Creates an instance of the system controller
    systemController = tipLocatorSystemController.systemController()
    # Creates a thread from the system controller
    systemControllerProcess = multiprocessing.Process(target=systemController.run, args=())
    # Makes the system controller thread a daemon thread
    systemControllerProcess.daemon = True
    # Starts the system controller thread
    systemControllerProcess.start()
Beispiel #2
0
 def initializeSystemController(self,_queue_SCtoUI):
     print('initializeSystemController accessed')
     ## Starting the system controller
     # Creates an instance of the system controller
     print('Creating system controller')
     self.systemController = tipLocatorSystemController.systemController(_queue_SCtoUI)
     # Creates a thread from the system controller
     print('Creating process for system controller')
     self.systemControllerProcess = multiprocessing.Process(target=self.systemController.run, args=())
     # Makes the system controller thread a not daemon process so it can spawn additional processes
     print('Setting system controller process as not daemon')
     self.systemControllerProcess.daemon = False
     # Starts the system controller thread
     print('Starting the system controller process')
     self.systemControllerProcess.start()