[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/rtmp r9726: remove debugging messages.
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/rtmp r9726: remove debugging messages. |
Date: |
Wed, 12 Nov 2008 19:11:59 -0700 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9726
committer: address@hidden
branch nick: rtmp
timestamp: Wed 2008-11-12 19:11:59 -0700
message:
remove debugging messages.
modified:
libnet/cache.cpp
=== modified file 'libnet/cache.cpp'
--- a/libnet/cache.cpp 2008-11-13 02:08:11 +0000
+++ b/libnet/cache.cpp 2008-11-13 02:11:59 +0000
@@ -38,7 +38,7 @@
using namespace std;
-//static boost::mutex cache_mutex;
+static boost::mutex cache_mutex;
namespace gnash
{
@@ -56,11 +56,10 @@
Cache::removePath(const std::string &name)
{
// GNASH_REPORT_FUNCTION;
+ boost::mutex::scoped_lock lock(cache_mutex);
map<string, string>::iterator it;
for (it = _pathnames.begin(); it != _pathnames.end(); it++) {
- cerr << name << " : " << it->first << " : " << it->second << endl;
if (it->first == name) {
- cerr << "Matched!" << endl;
_pathnames.erase(it);
break;
}
@@ -71,6 +70,7 @@
Cache::removeResponse(const std::string &name)
{
// GNASH_REPORT_FUNCTION;
+ boost::mutex::scoped_lock lock(cache_mutex);
map<string, string>::iterator it;
for (it = _responses.begin(); it != _responses.end(); it++) {
if (it->first == name) {
@@ -84,6 +84,7 @@
Cache::removeFile(const std::string &name)
{
// GNASH_REPORT_FUNCTION;
+ boost::mutex::scoped_lock lock(cache_mutex);
map<string, DiskStream *>::iterator it;
for (it = _files.begin(); it != _files.end(); it++) {
// DiskStream *ds = it->second;
@@ -97,9 +98,8 @@
void
Cache::dump(std::ostream& os) const
{
-// GNASH_REPORT_FUNCTION;
-
-// boost::mutex::scoped_lock lock(cache_mutex);
+// GNASH_REPORT_FUNCTION;
+ boost::mutex::scoped_lock lock(cache_mutex);
// Dump all the pathnames
map<std::string, std::string>::const_iterator name;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/rtmp r9726: remove debugging messages.,
rob <=