Exemplo n.º 1
0
 def _free(self):
     """Free system resource associated with a Broker object.
     
     This method can be called to free the underlying system resources
     associated with a Broker object.  It is called automatically when
     the object is garbage collected.  If called explicitly, the
     Broker and any associated Dict objects must no longer be used.
     """
     if self._this is not None:
         _e.broker_free(self._this)
         self._this = None
Exemplo n.º 2
0
 def _free(self):
     """Free system resource associated with a Broker object.
     
     This method can be called to free the underlying system resources
     associated with a Broker object.  It is called automatically when
     the object is garbage collected.  If called explicitly, the
     Broker and any associated Dict objects must no longer be used.
     """
     if self._this is not None:
         _e.broker_free(self._this)
         self._this = None
Exemplo n.º 3
0
    def _free(self):
        """Free system resource associated with a Broker object.

        This method can be called to free the underlying system resources
        associated with a Broker object.  It is called automatically when
        the object is garbage collected.  If called explicitly, the
        Broker and any associated Dict objects must no longer be used.
        """
        if self._this is not None:
            # During shutdown, this finalizer may be called before
            # some Dict finalizers.  Ensure all pointers are freed.
            for (dict, count) in list(self._live_dicts.items()):
                while count:
                    self._free_dict_data(dict)
                    count -= 1
            _e.broker_free(self._this)
            self._this = None
Exemplo n.º 4
0
 def _free(self):
     """Free system resource associated with a Broker object.
     
     This method can be called to free the underlying system resources
     associated with a Broker object.  It is called automatically when
     the object is garbage collected.  If called explicitly, the
     Broker and any associated Dict objects must no longer be used.
     """
     if self._this is not None:
         # During shutdown, this finalizer may be called before
         # some Dict finalizers.  Ensure all pointers are freed.
         for (dict,count) in list(self._live_dicts.items()):
             while count:
                 self._free_dict_data(dict)
                 count -= 1
         _e.broker_free(self._this)
         self._this = None