Permalink
Browse files

Fix bug: ID: 3523296 Onion skin and tile render are broken: Mutex::Lo…

…ck needs to be inside while condition.
  • Loading branch information...
1 parent 2786097 commit e2c6582c4e63a4f6f7eb1edb40b853ab40efc97a @genete genete committed May 31, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 synfig-studio/src/gui/asyncrenderer.cpp
@@ -331,14 +331,15 @@ class AsyncTarget_Scanline : public synfig::Target_Scanline
else
#endif
{
- Glib::Mutex::Lock lock(mutex);
+
Glib::TimeVal end_time;
end_time.assign_current_time();
end_time.add_microseconds(BOREDOM_TIMEOUT);
while(alive_flag && !ready_next)
{
+ Glib::Mutex::Lock lock(mutex);
if(cond_frame_queue_empty.timed_wait(mutex, end_time))
break;
}

0 comments on commit e2c6582

Please sign in to comment.