Changeset 4857

Show
Ignore:
Timestamp:
08/27/07 11:26:34 (6 years ago)
Author:
DrewCormier
Message:

changing variable names in voice buffer. adding a method for sending text data

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • experimental/components/rc2007_gui/WorkModule.py

    r4856 r4857  
    4040        self.rc2007_gui_ref = rc2007_gui_ref 
    4141         
    42         self.data_queue = [] 
    43         self.data_queue_lock = threading.Lock() 
    44         self.data_signal = threading.Event() 
     42        self.voice_data_queue = [] 
     43        self.voice_data_queue_lock = threading.Lock() 
     44        self.voice_data_signal = threading.Event() 
    4545 
    4646        self.is_running = True 
     
    5757        The Process() method will wait for this buffer to be set. 
    5858        ''' 
    59         self.data_queue_lock.acquire() 
    60         self.data_queue.insert(0, data) 
    61         self.data_queue_lock.release() 
    62         self.data_signal.set() 
    63          
     59        self.voice_data_queue_lock.acquire() 
     60        self.voice_data_queue.insert(0, data) 
     61        self.voice_data_queue_lock.release() 
     62        self.voice_data_signal.set() 
     63     
     64    def SendTextData(self,data) 
     65        # TODO: pack/depack 
     66        # add meta data 
     67        self.rc2007_gui_ref_outPort0_servant.send_data(data) 
     68         
    6469    def Release(self): 
    6570        self.is_running = False