Replaced method name run' with mainLoop', and stop' and quit'

with `exitMainLoop' in most places.
This commit is contained in:
crs
2002-07-30 15:17:44 +00:00
parent 8913acac34
commit 9792d35a6b
26 changed files with 90 additions and 90 deletions

View File

@@ -54,9 +54,9 @@ CClient::setAddress(const CNetworkAddress& serverAddress)
}
void
CClient::quit()
CClient::exitMainLoop()
{
m_screen->stop();
m_screen->exitMainLoop();
}
bool
@@ -133,7 +133,7 @@ CClient::open()
}
void
CClient::run()
CClient::mainLoop()
{
{
CLock lock(&m_mutex);
@@ -157,7 +157,7 @@ CClient::run()
}
// handle events
m_screen->run();
m_screen->mainLoop();
// clean up
deleteSession();
@@ -430,11 +430,11 @@ CClient::runSession(void*)
try {
log((CLOG_DEBUG "starting server proxy"));
runServer();
m_screen->stop();
m_screen->exitMainLoop();
log((CLOG_DEBUG "stopping server proxy"));
}
catch (...) {
m_screen->stop();
m_screen->exitMainLoop();
log((CLOG_DEBUG "stopping server proxy"));
throw;
}
@@ -521,7 +521,7 @@ CClient::runServer()
bool rejected = true;
if (proxy != NULL) {
log((CLOG_DEBUG1 "communicating with server"));
rejected = !proxy->run();
rejected = !proxy->mainLoop();
}
// clean up