[edge] Remove unnecessary pthread call
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Mon, 17 Oct 2022 07:03:46 +0000 (16:03 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Wed, 19 Oct 2022 01:47:15 +0000 (10:47 +0900)
- Remove `pthread_cancel`, cause msg and listener thread do not need
  thread cancellation.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
src/libnnstreamer-edge/nnstreamer-edge-internal.c

index 5b984008c3a771a1ab2dfe1b2b855efe68ae3540..81f9cd7211cacdb24123e764361c11512a5be04c 100644 (file)
@@ -524,7 +524,6 @@ _nns_edge_close_connection (nns_edge_conn_s * conn)
   /* Stop and clear the message thread. */
   if (conn->msg_thread) {
     if (conn->running) {
-      pthread_cancel (conn->msg_thread);
       conn->running = false;
     }
     pthread_join (conn->msg_thread, NULL);
@@ -1417,7 +1416,6 @@ nns_edge_release_handle (nns_edge_h edge_h)
 
   if (eh->listener_thread) {
     if (eh->listening) {
-      pthread_cancel (eh->listener_thread);
       eh->listening = false;
     }