//------------------------------------------------------------------------------------- void EventDispatcher::detachFrom(EventDispatcher & parentDispatcher) { int fd = pPoller_->getFileDescriptor(); if (fd != -1) { parentDispatcher.deregisterFileDescriptor(fd); parentDispatcher.deregisterWriteFileDescriptor(fd); } KBE_ASSERT(pCouplingToParent_ != NULL); delete pCouplingToParent_; pCouplingToParent_ = NULL; }