Added more debug prints (if verbosity is set).

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8101 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk
2011-03-28 23:58:50 +00:00
parent 86bcc57f41
commit 5eee0884e2

View File

@@ -195,6 +195,8 @@ NetworkHttp::~NetworkHttp()
// a download, which mean we can get the mutex and ask the service
// thread here to cancel properly.
cancelDownload();
if(UserConfigParams::m_verbosity>=3)
printf("[addons] Trying to lock command mutex.\n");
pthread_mutex_lock(&m_mutex_command);
{
m_command=HC_QUIT;
@@ -207,7 +209,10 @@ NetworkHttp::~NetworkHttp()
if(m_thread_id)
{
void *result;
if(UserConfigParams::m_verbosity>=3)
printf("[addons] Trying to join network thread.\n");
pthread_join(*m_thread_id, &result);
delete m_thread_id;
if(UserConfigParams::m_verbosity>=3)
printf("[addons] Network thread joined.\n");
}