~dustin-spy/twisted/dustin

« back to all changes in this revision

Viewing changes to twisted/python/threadable.py

  • Committer: carmstro
  • Date: 2002-03-16 22:54:55 UTC
  • Revision ID: vcs-imports@canonical.com-20020316225455-53a8cf46dc4267e2
new doc-generator, admin/ directory, class renamings, slight doc update.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
# sibling imports
29
29
import hook
30
30
 
31
 
class error(Exception): pass
 
31
class ThreadableError(Exception): pass
32
32
 
33
33
class _Waiter:
34
34
    def __init__(self):
88
88
    
89
89
    def unwait_all(self):
90
90
        for k in self.conditions.keys():
91
 
            self.unwait(k, error("Shut Down."), 0)
 
91
            self.unwait(k, ThreadableError("Shut Down."), 0)
92
92
    
93
93
 
94
94
class _ThreadedWaiter(_Waiter):