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:
parent
e7d5b2314a
commit
37b057a60e
@ -57,7 +57,6 @@ NetworkHttp::NetworkHttp() : m_news(""), m_progress(-1.0f)
|
|||||||
{
|
{
|
||||||
pthread_mutex_init(&m_mutex_command, NULL);
|
pthread_mutex_init(&m_mutex_command, NULL);
|
||||||
pthread_cond_init(&m_cond_command, NULL);
|
pthread_cond_init(&m_cond_command, NULL);
|
||||||
m_abort = false;
|
|
||||||
|
|
||||||
pthread_attr_t attr;
|
pthread_attr_t attr;
|
||||||
pthread_attr_init(&attr);
|
pthread_attr_init(&attr);
|
||||||
@ -108,7 +107,7 @@ void *NetworkHttp::mainLoop(void *obj)
|
|||||||
/*is_asynchron*/true );
|
/*is_asynchron*/true );
|
||||||
} // switch(m_command)
|
} // switch(m_command)
|
||||||
me->m_command = HC_SLEEP;
|
me->m_command = HC_SLEEP;
|
||||||
} // while !m_abort
|
} // while 1
|
||||||
pthread_mutex_unlock(&me->m_mutex_command);
|
pthread_mutex_unlock(&me->m_mutex_command);
|
||||||
return NULL;
|
return NULL;
|
||||||
} // mainLoop
|
} // mainLoop
|
||||||
@ -118,8 +117,6 @@ void *NetworkHttp::mainLoop(void *obj)
|
|||||||
*/
|
*/
|
||||||
NetworkHttp::~NetworkHttp()
|
NetworkHttp::~NetworkHttp()
|
||||||
{
|
{
|
||||||
m_abort=1; // Doesn't really need a mutex
|
|
||||||
|
|
||||||
pthread_mutex_lock(&m_mutex_command);
|
pthread_mutex_lock(&m_mutex_command);
|
||||||
{
|
{
|
||||||
m_command=HC_QUIT;
|
m_command=HC_QUIT;
|
||||||
|
@ -65,9 +65,6 @@ private:
|
|||||||
/** Thread id of the thread running in this object. */
|
/** Thread id of the thread running in this object. */
|
||||||
pthread_t m_thread_id;
|
pthread_t m_thread_id;
|
||||||
|
|
||||||
/** Signals that the main loop is to be aborted. */
|
|
||||||
bool m_abort;
|
|
||||||
|
|
||||||
static void *mainLoop(void *obj);
|
static void *mainLoop(void *obj);
|
||||||
void checkNewServer();
|
void checkNewServer();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user