parameters: (self, zone_notify_info)
docstring: Notify next address for the same zone. If all the targets
          has been notified, notify the first zone in waiting list.
docstring_summary: Notify next address for the same zone. If all the targets
          has been notified, notify the first zone in waiting list.
docstring_tokens: Notify next address for the same zone . If all the targets has been notified notify the first zone in waiting list .
function: def _notify_next_target(self, zone_notify_info):
          '''Notify next address for the same zone. If all the targets
          has been notified, notify the first zone in waiting list. '''
          zone_notify_info.notify_try_num = 0
          zone_notify_info.set_next_notify_target()
          tgt = zone_notify_info.get_current_notify_target()
          if not tgt:
              zone_notify_info.finish_notify_out()
              with self._lock:
                  self.notify_num -= 1
                  self._notifying_zones.remove((zone_notify_info.zone_name,
                                                zone_notify_info.zone_class))
                  # trigger notify out for waiting zones
                  if len(self._waiting_zones) > 0:
                      zone_id = self._waiting_zones.pop(0)
                      self._notify_infos[zone_id].prepare_notify_out()
                      self.notify_num += 1
                      self._notifying_zones.append(zone_id)
                      if not self._nonblock_event.isSet():
                          self._nonblock_event.set()
function_tokens: def _notify_next_target ( self , zone_notify_info ) : zone_notify_info . notify_try_num = 0 zone_notify_info . set_next_notify_target ( ) tgt = zone_notify_info . get_current_notify_target ( ) if not tgt : zone_notify_info . finish_notify_out ( ) with self . _lock : self . notify_num -= 1 self . _notifying_zones . remove ( ( zone_notify_info . zone_name , zone_notify_info . zone_class ) ) # trigger notify out for waiting zones if len ( self . _waiting_zones ) > 0 : zone_id = self . _waiting_zones . pop ( 0 ) self . _notify_infos [ zone_id ] . prepare_notify_out ( ) self . notify_num += 1 self . _notifying_zones . append ( zone_id ) if not self . _nonblock_event . isSet ( ) : self . _nonblock_event . set ( )