]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
rtp
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 28 Mar 2006 20:12:05 +0000 (20:12 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 28 Mar 2006 20:12:05 +0000 (20:12 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@956 d0543943-73ff-0310-b7d9-9358b9ac24b2

libs/jrtplib/src/pthread/jthread.cpp

index 1f6a24158bec57bd791072f6b23f05e21a823ff5..bb8f5397932908017e1187303b861faaeb86b7c2 100644 (file)
@@ -45,6 +45,7 @@ JThread::~JThread()
 int JThread::Start()
 {
        int status;
+    pthread_attr_t attr;
 
        if (!mutexinit)
        {
@@ -75,7 +76,9 @@ int JThread::Start()
        runningmutex.Unlock();
        
        continuemutex.Lock();
-       status = pthread_create(&threadid,NULL,TheThread,this);
+    pthread_attr_init(&attr);
+    pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
+       status = pthread_create(&threadid,&attr,TheThread,this);
        if (status != 0)
        {
                continuemutex.Unlock();