use pthread_detach

pull/5/head
yuqing 2015-11-03 09:55:43 +08:00
parent 07c93f6206
commit 8f26a0a354
1 changed files with 2 additions and 0 deletions

View File

@ -292,6 +292,7 @@ static void *sched_call_func(void *args)
logDebug("file: "__FILE__", line: %d, " \
"thread exit, task id: %d", __LINE__, task_id);
pthread_detach(pthread_self());
return NULL;
}
@ -769,6 +770,7 @@ static void *sched_call_delay_func(void *args)
"delay thread exit, task args: %p", __LINE__, task->func_args);
fast_mblock_free_object(&pContext->mblock, task);
pthread_detach(pthread_self());
return NULL;
}