提交 edaa6870 authored 作者: Anthony Minessale's avatar Anthony Minessale

rtp

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@956 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 1fe0f260
......@@ -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();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论