def joinall(cls):
        """Joins all the threads together into the calling thread."""
        for th in cls.running_threads[:]:
            while th[0].isAlive():
                time.sleep(0.1)
            th[0].join()
         #   print "Thread:",th[1],"joined","isalive:",th[0].isAlive() --- Debug stuff
Joins all the threads together into the calling thread.
recipes/Python/578385_Simple_python_thread_manager/recipe-578385.py