[Edge] Add cond for nns_edge_handle accepted/tizen/unified/20231110.172145
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Fri, 27 Oct 2023 10:28:02 +0000 (19:28 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Mon, 30 Oct 2023 03:01:31 +0000 (12:01 +0900)
commitcbbdd7cb73e646491adcd05793bfb0d3c789173d
tree2911d182db1e21ff7bb12cf9cc0dde52435a10b6
parent46f7acb58b4c00abbb94f00d0dd8892ee9e0d9fa
[Edge] Add cond for nns_edge_handle

- Add a pthread_cond for nns_edge_handle. And let the start method wait
  for the cond to be signaled by send_thread.
- This prevents some race conditions when APIs are used while
  send_thread is not yet started.

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