From: Anthony Minessale Date: Tue, 28 Mar 2006 20:12:05 +0000 (+0000) Subject: rtp X-Git-Tag: v1.0-beta1~2993 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edaa6870e85f9863886518da1f7c8b2382e68b96;p=thirdparty%2Ffreeswitch.git rtp git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@956 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/libs/jrtplib/src/pthread/jthread.cpp b/libs/jrtplib/src/pthread/jthread.cpp index 1f6a24158b..bb8f539793 100644 --- a/libs/jrtplib/src/pthread/jthread.cpp +++ b/libs/jrtplib/src/pthread/jthread.cpp @@ -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();