Removed unused m_abort variable.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7315 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2011-01-06 20:56:32 +00:00
parent e7d5b2314a
commit 37b057a60e
2 changed files with 1 additions and 7 deletions

View File

@ -57,7 +57,6 @@ NetworkHttp::NetworkHttp() : m_news(""), m_progress(-1.0f)
{
pthread_mutex_init(&m_mutex_command, NULL);
pthread_cond_init(&m_cond_command, NULL);
m_abort = false;
pthread_attr_t attr;
pthread_attr_init(&attr);
@ -108,7 +107,7 @@ void *NetworkHttp::mainLoop(void *obj)
/*is_asynchron*/true );
} // switch(m_command)
me->m_command = HC_SLEEP;
} // while !m_abort
} // while 1
pthread_mutex_unlock(&me->m_mutex_command);
return NULL;
} // mainLoop
@ -118,8 +117,6 @@ void *NetworkHttp::mainLoop(void *obj)
*/
NetworkHttp::~NetworkHttp()
{
m_abort=1; // Doesn't really need a mutex
pthread_mutex_lock(&m_mutex_command);
{
m_command=HC_QUIT;

View File

@ -65,9 +65,6 @@ private:
/** Thread id of the thread running in this object. */
pthread_t m_thread_id;
/** Signals that the main loop is to be aborted. */
bool m_abort;
static void *mainLoop(void *obj);
void checkNewServer();