[Problem] Device hanged for a while inserting camera captured image to memo
[Cause & Measure] Thread falls asleep right before calling pthread_join
[Checking Method] Fixed not to sleep thread before it's terminated
Change-Id: Iea4ea4b7ef6877667cbe7c0ee21bdde58986c174
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
{
ConditionalWait::ScopedLock lock( mUpdateRenderThreadWaitCondition );
while( mPostRendering &&
- ! mNewSurface ) // We should NOT wait if we're replacing the surface
+ ! mNewSurface && // We should NOT wait if we're replacing the surface
+ ! mDestroyUpdateRenderThread )
{
mUpdateRenderThreadWaitCondition.Wait( lock );
}