def __dealloc__(self):
     if self._ptr:
         self._stop_signal_checker()
         if not libev.ev_is_default_loop(self._ptr):
             libev.ev_loop_destroy(self._ptr)
         self._unregister_instance()
         self._ptr = None
 def default(self):
     return True if libev.ev_is_default_loop(self._ptr) else False