X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Fcsdk%2Fconnectivity%2Fcommon%2Fsrc%2Fcathreadpool_pthreads.c;h=7bb19dd54bffe54e683a83f370787a5bb98d8584;hb=55283efd23d570e22010e2a403adea20d16210b9;hp=8d143e7ba758279354c658d1a787446befae9ba5;hpb=7bcbe1689b9b414d5f857076b3af400d8d8e9b65;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/csdk/connectivity/common/src/cathreadpool_pthreads.c b/resource/csdk/connectivity/common/src/cathreadpool_pthreads.c index 8d143e7..7bb19dd 100644 --- a/resource/csdk/connectivity/common/src/cathreadpool_pthreads.c +++ b/resource/csdk/connectivity/common/src/cathreadpool_pthreads.c @@ -215,7 +215,7 @@ CAResult_t ca_thread_pool_add_task(ca_thread_pool_t thread_pool, ca_thread_func OICFree(info); return CA_STATUS_FAILED; } - OIC_LOG_V(DEBUG, TAG, "created taskId: %u", threadInfo->taskId); + OIC_LOG_V(INFO, TAG, "created thread: %p, taskId: %u", threadInfo->thread, threadInfo->taskId); oc_mutex_unlock(thread_pool->details->list_lock); OIC_LOG_V(DEBUG, TAG, "Out %s", __func__); @@ -241,10 +241,12 @@ CAResult_t ca_thread_pool_remove_task(ca_thread_pool_t thread_pool, uint32_t tas { if (threadInfo->taskId == taskId) { - OIC_LOG_V(INFO, TAG, "waiting.. taskId: %u", threadInfo->taskId); + OIC_LOG_V(INFO, TAG, "waiting.. thread: %p, taskId: %u", threadInfo->thread, + threadInfo->taskId); oc_thread_wait(threadInfo->thread); - OIC_LOG_V(DEBUG, TAG, "removed taskId: %u", threadInfo->taskId); + OIC_LOG_V(INFO, TAG, "removed.. thread: %p, taskId: %u", threadInfo->thread, + threadInfo->taskId); u_arraylist_remove(thread_pool->details->threads_list, i); oc_thread_free(threadInfo->thread); OICFree(threadInfo); @@ -279,10 +281,12 @@ void ca_thread_pool_free(ca_thread_pool_t thread_pool) if (threadInfo->thread) { #ifdef __TIZEN__ - OIC_LOG_V(INFO, TAG, "canceling.. thread: %p", threadInfo->thread); + OIC_LOG_V(INFO, TAG, "canceling.. thread: %p, taskId: %u", threadInfo->thread, + threadInfo->taskId); oc_thread_cancel(threadInfo->thread); #endif - OIC_LOG_V(INFO, TAG, "waiting.. thread: %p", threadInfo->thread); + OIC_LOG_V(INFO, TAG, "waiting.. thread: %p, taskId: %u", threadInfo->thread, + threadInfo->taskId); oc_thread_wait(threadInfo->thread); oc_thread_free(threadInfo->thread); }