Changed the type of data added in ca_threadpool_pthreads list.
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Wed, 14 Dec 2016 08:02:30 +0000 (17:02 +0900)
committerAshok Babu Channa <ashok.channa@samsung.com>
Fri, 16 Dec 2016 09:04:06 +0000 (09:04 +0000)
commit2779c1ae8f64ed6d3a5f80a67193ba166f428c8b
treeb63e65d1e2393f712e8f7c3b5431197b66199c6b
parent9801e8bf568252f3d77df776c0c758240c89a1c2
Changed the type of data added in ca_threadpool_pthreads list.

If u_arraylist_add() failed, pthread_join() should be called to
release its resources in ca_thread_pool_add_task().
but If the state of target thread is blocked on a condition variable,
there is no way to release its resource. (pthread_join() function
will wait for the thread to terminate.)
So, I changed the type of data added in ca_threadpool_pthreads list
to release its resource when ca_thread_pool_free() is called.

Change-Id: Ieae5d920368e46230ca312817ed1726bb08e0f2d
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15591
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jaehong Jo <jaehong.jo@samsung.com>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/connectivity/common/inc/uarraylist.h
resource/csdk/connectivity/common/src/cathreadpool_pthreads.c
resource/csdk/connectivity/common/src/uarraylist.c