Commit 63563590 authored by Ian Craggs's avatar Ian Craggs

Debugging pthread problem

parent 56ea3848
......@@ -393,11 +393,6 @@ void MQTTAsync_terminate(void)
if (initialized)
{
ListElement* elem = NULL;
#if !defined(WIN32)
//Thread_destroy_cond(send_cond);
#else
//Thread_destroy_sem(send_sem);
#endif
ListFree(bstate->clients);
ListFree(handles);
while (ListNextElement(commands, &elem))
......
......@@ -112,11 +112,6 @@ int Thread_lock_mutex(mutex_type mutex)
#if defined(WIN32)
if (WaitForSingleObject(mutex, INFINITE) != WAIT_FAILED)
#else
if (mutex->__data.__owner != 0)
{
printf("mutex owner != 0, %p\n", mutex);
StackTrace_printStack(stdout);
}
rc = pthread_mutex_lock(mutex);
if (rc != 0)
printf("rc from mutex_lock was %d\n", rc);
......@@ -141,11 +136,6 @@ int Thread_unlock_mutex(mutex_type mutex)
#if defined(WIN32)
if (ReleaseMutex(mutex) != 0)
#else
if (mutex->__data.__owner == 0)
{
printf("thread_unlock: mutex owner == 0, %p\n", mutex);
StackTrace_printStack(stdout);
}
rc = pthread_mutex_unlock(mutex);
if (rc != 0)
printf("rc from mutex_unlock was %d\n", rc);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment