Logo Search packages:      
Sourcecode: rapid-photo-downloader version File versions  Download package

def rapid::rapid::CopyPhotos::quit (   self  ) 

Quits the thread 

A thread can be in one of four states:

Not started (not alive, nothing to do)
Started and actively running (alive)
Started and paused (alive)
Completed (not alive, nothing to do)

Definition at line 3015 of file rapid.py.

03015                   :
        """ 
        Quits the thread 
        
        A thread can be in one of four states:
        
        Not started (not alive, nothing to do)
        Started and actively running (alive)
        Started and paused (alive)
        Completed (not alive, nothing to do)
        """
        
        # cleanup any temporary directories and files
        self.cleanUp()
        
        if self.hasStarted:
            if self.isAlive():            
                self.ctrl = False
                
                if not self.running:
                    released = False
                    while not released:
                        try:
                            self.lock.release()
                            released = True
                        except thread_error:
                            sys.stderr.write("Could not release lock for thread %s\n" % self.thread_id)
                            
                            

    def on_volume_unmount(self,  data1,  data2):


Generated by  Doxygen 1.6.0   Back to index