Moved NotificationTrigger from update thread to update-render-sync 55/33855/2
authorDavid Steele <david.steele@partner.samsung.com>
Thu, 15 Jan 2015 14:38:14 +0000 (14:38 +0000)
committerDavid Steele <david.steele@partner.samsung.com>
Thu, 15 Jan 2015 15:00:00 +0000 (07:00 -0800)
commitb3f684d86c0550338daedb66146dce7e8eb8dc5c
tree70f4c714cf87219f21b02b8fd98ec0ea3975c626
parentdfe8dadf848448635ec4142d0d45f96fa839cf26
Moved NotificationTrigger from update thread to update-render-sync

Need to prevent event triggers from being sent when the system is
shutting down. The update thread gets this information after triggering
the event thread to wake up.

Instead, by moving the notification trigger to the UpdateRenderSynchronisation
class, we can ensure that the trigger is only sent whilst mRunning is true;
i.e. that the trigger is not called after the Adaptor destructor has been called.

The Trigger() method is still expected not to block.

Change-Id: Id0394fa0bc32f2dbf03f1edeae1a2b46ad7cb90b
adaptors/base/update-render-synchronization.cpp
adaptors/base/update-render-synchronization.h
adaptors/base/update-thread.cpp
adaptors/base/update-thread.h