revert debugging stuff
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@944 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
fd557f4ca3
commit
2ac8184a7f
|
@ -27,9 +27,6 @@
|
|||
|
||||
#include "jthread.h"
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
JThread::JThread()
|
||||
{
|
||||
|
@ -51,24 +48,18 @@ int JThread::Start()
|
|||
{
|
||||
if (!runningmutex.IsInitialized())
|
||||
{
|
||||
if (runningmutex.Init() < 0) {
|
||||
printf("STUPID 1\n");
|
||||
if (runningmutex.Init() < 0)
|
||||
return ERR_JTHREAD_CANTINITMUTEX;
|
||||
}
|
||||
}
|
||||
if (!continuemutex.IsInitialized())
|
||||
{
|
||||
if (continuemutex.Init() < 0) {
|
||||
printf("STUPID 2\n");
|
||||
if (continuemutex.Init() < 0)
|
||||
return ERR_JTHREAD_CANTINITMUTEX;
|
||||
}
|
||||
}
|
||||
if (!continuemutex2.IsInitialized())
|
||||
{
|
||||
if (continuemutex2.Init() < 0) {
|
||||
printf("STUPID 3\n");
|
||||
if (continuemutex2.Init() < 0)
|
||||
return ERR_JTHREAD_CANTINITMUTEX;
|
||||
}
|
||||
}
|
||||
mutexinit = true;
|
||||
}
|
||||
|
@ -77,7 +68,6 @@ int JThread::Start()
|
|||
if (running)
|
||||
{
|
||||
runningmutex.Unlock();
|
||||
printf("STUPID 4\n");
|
||||
return ERR_JTHREAD_ALREADYRUNNING;
|
||||
}
|
||||
runningmutex.Unlock();
|
||||
|
@ -87,7 +77,6 @@ int JThread::Start()
|
|||
if (status != 0)
|
||||
{
|
||||
continuemutex.Unlock();
|
||||
printf("STUPID 5 %d (%s) (%s)\n", strerror(errno), strerror(status));
|
||||
return ERR_JTHREAD_CANTSTARTTHREAD;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue