Adding thread safety in notification service. 02/229402/1
authorKush <kush.agrawal@samsung.com>
Fri, 13 Mar 2020 15:05:19 +0000 (20:35 +0530)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Wed, 1 Apr 2020 01:33:45 +0000 (10:33 +0900)
commit449acd989ad886c6a9cc1d585f06d64c8eb4e0b3
tree61e34b841daf1278f8207264ba119e6d4a5cb5b0
parent15a2b5d9adeb1a00204726853ad8fd168f264a78
Adding thread safety in notification service.

Issue: Push Event and exit are called at same time.
       Then there is a race condition and deadlock occurs.

Solution : Adding mutex which will synchronize tasks between
           handler thread and push event thread.

https://github.sec.samsung.net/RS7-IOTIVITY/IoTivity/pull/669
(cherry-picked from 0b58e0e487a3e2d4e6fe5b02d7fb1dab6b040a6f)

Change-Id: I4db8cd03283cfc1824a32651a63cd6f509621931
Signed-off-by: Kush <kush.agrawal@samsung.com>
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
service/notification/src/consumer/NSConsumerScheduler.c