[CONPRO-1555] oneconnect:Core / Application crashed 78/225278/1
authorsamanway <samanway@linux-samanway.sa.corp.samsungelectronics.net>
Tue, 28 Jan 2020 16:38:04 +0000 (22:08 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 19 Feb 2020 00:10:08 +0000 (09:10 +0900)
commitdaef13e9901a25656dbea914d2a5bf92a755fc1d
treec65b618ba8a441097fcfa04020234f3d26cc3c83
parente921b65b421b01c562dacee74614ada071ab02ea
[CONPRO-1555] oneconnect:Core / Application crashed

- In function NSConsumerMsgPushThreadFunc for locking 'msgHandleThread', there could be a
possibility of destruction of the thread running NSConsumerMsgHandleThreadFunc function
and destruction of the mutex as well at the time of locking it
- Hence handled this critical mutex with a global lock

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/657
(cherry-picked from 5289e48a0aa9ce007d44cd443dd73cc8f509fcee)

Change-Id: I1892df4276b6ffcb969a91fd23c9f3d9f3c5a959
Signed-off-by: samanway-dey <samanway.dey@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
service/notification/src/consumer/NSConsumerScheduler.c