[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-
From: |
Bastiaan Jacques |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2044-gfc8d5f7 |
Date: |
Wed, 21 May 2014 23:34:44 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via fc8d5f744421cb8c17bde2093f902c536a963e75 (commit)
from ad0f99e2e9fa7ea07fe49303f9491e6bd301401f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=fc8d5f744421cb8c17bde2093f902c536a963e75
commit fc8d5f744421cb8c17bde2093f902c536a963e75
Author: Bastiaan Jacques <address@hidden>
Date: Thu May 22 00:49:17 2014 +0200
Remove the barrier mechanism, because _parserThread is only accessed
from the thread which created it.
diff --git a/libmedia/MediaParser.cpp b/libmedia/MediaParser.cpp
index 1da97fa..4cdab26 100644
--- a/libmedia/MediaParser.cpp
+++ b/libmedia/MediaParser.cpp
@@ -40,7 +40,6 @@ MediaParser::MediaParser(std::unique_ptr<IOChannel> stream)
_stream(std::move(stream)),
_bufferTime(100), // 100 ms
_parserThread(),
- _parserThreadStartBarrier(2),
_parserThreadKillRequested(false),
_seekRequest(false)
{
@@ -54,7 +53,6 @@ MediaParser::startParserThread()
log_debug("Starting MediaParser thread");
_parserThread.reset(new boost::thread(
std::bind(parserLoopStarter, this)));
- _parserThreadStartBarrier.wait();
#endif
}
@@ -435,7 +433,6 @@ MediaParser::bufferFull() const
void
MediaParser::parserLoop()
{
- _parserThreadStartBarrier.wait();
while (!parserThreadKillRequested())
{
parseNextChunk();
diff --git a/libmedia/MediaParser.h b/libmedia/MediaParser.h
index 9e80f27..c433f5e 100644
--- a/libmedia/MediaParser.h
+++ b/libmedia/MediaParser.h
@@ -22,7 +22,6 @@
#include <boost/thread/thread.hpp>
#include <boost/thread/condition.hpp>
-#include <boost/thread/barrier.hpp>
#include <memory>
#include <deque>
#include <map>
@@ -689,7 +688,6 @@ protected:
mutable boost::mutex _bufferTimeMutex;
std::unique_ptr<boost::thread> _parserThread;
- boost::barrier _parserThreadStartBarrier;
mutable boost::mutex _parserThreadKillRequestMutex;
bool _parserThreadKillRequested;
boost::condition _parserThreadWakeup;
-----------------------------------------------------------------------
Summary of changes:
libmedia/MediaParser.cpp | 3 ---
libmedia/MediaParser.h | 2 --
2 files changed, 0 insertions(+), 5 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2044-gfc8d5f7,
Bastiaan Jacques <=