[CONPRO-1555] oneconnect:Core / Application crashed 85/225285/2
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:14:17 +0000 (09:14 +0900)
commitbcf33db9326e6a35f123df8295c7ce1528dd72f3
treef295708f66277fba6a3bbdc72be1293dc4be27a4
parent59571295e18f2a4fec1421a5e8c06db31c2a1800
[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