// Call OsTask::requestShutdown() and then post an OS_SHUTDOWN message // to the incoming message queue to unblock the task. void OsServerTask::requestShutdown(void) { // Don't need to initiate shutdown if the task is already shutting down // or already shut down. if (isNotShut()) { OsMsg msg(OsMsg::OS_SHUTDOWN, 0); OsTask::requestShutdown(); // causes isShuttingDown to return TRUE postMessage(msg); // wake up the task run loop } }
UtlBoolean SipClient::isOk() { return OsServerTaskWaitable::isOk() && mClientSocket->isOk() && isNotShut(); }