Changeset 4021

Show
Ignore:
Timestamp:
05/30/07 15:14:43 (6 years ago)
Author:
DrewCormier
Message:

moved thread initilization to the start method. added a few debugging print statements

Location:
experimental/components/image_capture/trunk/image_capture
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • experimental/components/image_capture/trunk/image_capture/WorkModule.py

    r4007 r4021  
    4343        self.is_running = True 
    4444 
    45         self.process_thread = threading.Thread(target=self.Process) 
    46         self.process_thread.start() 
    4745         
    4846    def __del__(self): 
     
    6159                 
    6260    def Process(self): 
     61        print "in image_capture.workModule.Process" 
    6362        while self.is_running: 
     63            print "image_capture.workModule.Process is_running" 
    6464            self.data_signal.wait() 
    6565 
  • experimental/components/image_capture/trunk/image_capture/image_capture.py

    r4007 r4021  
    5858    def start(self): 
    5959        print "image_capture start called" 
     60        print "setting up the process thread in image_capture\n" 
     61        self.work_mod.process_thread = threading.Thread(target=self.work_mod.Process) 
     62        self.work_mod.process_thread.start() 
     63 
    6064         
    6165    def stop(self): 
     
    6367         
    6468    def getPort(self, id): 
     69        print "image_capture getPort called" 
    6570        if str(id) == "image_out": 
    6671            return self.outPort0_var 
     
    6974         
    7075    def initialize(self): 
    71         print "image_capture initialize called" 
     76        print "image_capture initialize called\n" 
    7277     
    7378    def configure(self, props): 
    74         print "image_capture configure called" 
     79        print "image_capture configure called\n" 
    7580        buffer_size = 0 
    7681         
     
    99104class dataOut_realChar_i(CF__POA.Port): 
    100105    def __init__(self, parent, name): 
     106 
     107        print "initializing dataOut_realChar_i in image_capture" 
     108 
    101109        self.parent = parent 
    102110        self.outPorts = {} 
     
    168176     
    169177    def __init__(self, uuid, label): 
     178        print "image_capture is initializing its orb" 
    170179        # initialize the orb 
    171180        self.orb = CORBA.ORB_init() 
     
    186195        rootContext.rebind(name, image_capture_var) 
    187196         
     197        print "image_capture is running its orb" 
    188198        self.orb.run() 
    189199