Ejemplo n.º 1
0
// 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
   }
}
Ejemplo n.º 2
0
UtlBoolean SipClient::isOk()
{
   return OsServerTaskWaitable::isOk() && mClientSocket->isOk() && isNotShut();
}