aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbobo1on1 <bobo1on1@svn>2010-04-26 21:20:37 +0000
committerbobo1on1 <bobo1on1@svn>2010-04-26 21:20:37 +0000
commitb9cdc9334e2d19eecb848ca16d5670eb8aecf7a1 (patch)
tree05b4785d14fdc6309962c377b1ba5bf358b0d2c9
parent05805d43cdc766c8fa6cedeb904623e70d97121c (diff)
added: temporary log lines to help figure out an obscure bug where m_event in CGetDirectory never gets set, this will be reverted when the bug is found
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29521 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--xbmc/FileSystem/Directory.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/xbmc/FileSystem/Directory.cpp b/xbmc/FileSystem/Directory.cpp
index a86f6d3883..86936a0765 100644
--- a/xbmc/FileSystem/Directory.cpp
+++ b/xbmc/FileSystem/Directory.cpp
@@ -57,8 +57,15 @@ private:
public:
virtual bool DoWork()
{
+ //temporary log line to figure out occasional hangs where m_event never gets set
+ CLog::Log(LOGDEBUG, "CGetDirectory::DoWork retrieving %s", m_dir.c_str());
+
m_list.m_strPath = m_dir;
- return m_imp.GetDirectory(m_dir, m_list);
+ bool result = m_imp.GetDirectory(m_dir, m_list);
+
+ //temporary log line to figure out occasional hangs where m_event never gets set
+ CLog::Log(LOGDEBUG, "CGetDirectory::DoWork retrieving %s %s", m_dir.c_str(), result ? "succeeded" : "failed");
+ return result;
}
CStdString m_dir;
CFileItemList& m_list;
@@ -81,6 +88,8 @@ public:
virtual void OnJobComplete(unsigned int jobID, bool success, CJob *job)
{
+ //temporary log line to figure out occasional hangs where m_event never gets set
+ CLog::Log(LOGDEBUG, "CGetDirectory::OnJobComplete called");
m_result = success;
m_event.Set();
}