def _release(self): CConnection._release(self) if self._d_events_enabled and len(self._d_buffer)>0: # create a new thread that holds a weakref of self to process the # left data. t = threading.Thread(target=CSequenceConnection._start_event_thread, args=(weakref.proxy(self),)) self._d_event_threads.append(t) t.start()
def _release(self): """ Internal used method to reserve the connection and the destination module. Please do not use this method! Use the inhered method release() instead. """ CConnection._release(self); if(len(self._d_buffer)>0 and self._d_events_enabled): # create a new thread that holds a weakref of self to process the left data. t = threading.Thread(target=CStreamConnection._start_event_thread, args=(weakref.proxy(self),)); self._d_event_threads.append(t); t.start();