gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r12367: Check for wait conditions at


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r12367: Check for wait conditions at the end of every parse "chunk". Seems to be the safest bet to ensure parser thread gets to sleep at parse end.
Date: Thu, 12 Aug 2010 22:03:46 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 12367
author: John Gilmore <address@hidden>
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Thu 2010-08-12 22:03:46 +0200
message:
  Check for wait conditions at the end of every parse "chunk". Seems to be the 
safest bet to ensure parser thread gets to sleep at parse end. 
modified:
  libmedia/MediaParser.cpp
=== modified file 'libmedia/MediaParser.cpp'
--- a/libmedia/MediaParser.cpp  2010-01-01 17:48:26 +0000
+++ b/libmedia/MediaParser.cpp  2010-08-12 20:03:46 +0000
@@ -411,7 +411,8 @@
        while (!parserThreadKillRequested())
        {
                parseNextChunk();
-               gnashSleep(100); // no rush....
+               boost::mutex::scoped_lock lock(_qMutex);
+               waitIfNeeded(lock);
        }
 }
 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]