void MachServer::notifyIfUnused(Port port, bool doNotify) const { if (doNotify) port.requestNotify(port, MACH_NOTIFY_NO_SENDERS, true); else port.cancelNotify(MACH_NOTIFY_NO_SENDERS); }
// // Register for mach port notifications // void MachServer::notifyIfDead(Port port, bool doNotify) const { if (doNotify) port.requestNotify(mServerPort); else port.cancelNotify(); }