#NEWLINE# def __init__( self , dispatch_periodicity = None ) : #NEWLINE# #INDENT# if ( dispatch_periodicity is None ) : #NEWLINE# #INDENT# dispatch_periodicity = self . _SPIN_PERIODICITY #NEWLINE# #UNINDENT# if ( dispatch_periodicity <= 0 ) : #NEWLINE# #INDENT# raise ValueError ( ( "Provided dispatch periodicity must be greater than zero and not '%s'" % dispatch_periodicity ) ) #NEWLINE# #UNINDENT# self . _targets = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . _dead = threading . Event ( ) #NEWLINE# self . _dispatch_periodicity = dispatch_periodicity #NEWLINE# self . _stop_when_empty = False