(ThreadSync) Ensure we continue to wait if we're still post-rendering 57/48157/1
authorAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 15 Sep 2015 08:11:06 +0000 (09:11 +0100)
committerAdeel Kazmi <adeel.kazmi@samsung.com>
Tue, 15 Sep 2015 08:11:09 +0000 (09:11 +0100)
commite935fcb5d2967280e418e9d2e54d1a9a3f0515be
tree67127d6ae2e73ac574ac6e698abe0adced2f342c
parent512916a07333d01454e60e519788f59f20e8aba9
(ThreadSync) Ensure we continue to wait if we're still post-rendering

[Problem]  If we're post-rendering and UpdateReady is called, we start another render rather than
           waiting for the post-render to finish.
[Solution] Use a while loop in PostRenderWaitForCompletion instead so that even if we're triggered
           by the update-thread, we don't carry on until the post-render is actually complete or
           if we need to replace the surface.

Change-Id: Id285a8ef09bb74d183534d7011c7a40eb45a6b0b
adaptors/base/thread-synchronization.cpp
adaptors/base/thread-synchronization.h