Пример #1
0
 def destroy(self):
     #  Remove this watcher from its owning Flux handle
     #  if the handle is still around. A try/except block
     #  used here in case the Watcher got an exception
     #  before __init__ (e.g. in subclass __init__)
     try:
         self.flux_handle.del_watcher(self)
     except AttributeError:
         pass
     if self.handle is not None:
         raw.flux_watcher_destroy(self.handle)
         self.handle = None
Пример #2
0
 def destroy(self):
     if self.handle is not None:
         raw.flux_watcher_destroy(self.handle)
         self.handle = None
Пример #3
0
 def destroy(self):
     if self.handle is not None:
         raw.flux_watcher_destroy(self.handle)
         self.handle = None