aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorelupus <elupus@svn>2009-12-05 21:54:55 +0000
committerelupus <elupus@svn>2009-12-05 21:54:55 +0000
commit082b2d10654225df37be44b32f9293aa972cc76c (patch)
treeec1c8b16235fcbb823cf3f7b23faf3d94d47008d
parent649435391844b46b89b6a66779baec7f72285596 (diff)
changed: setting thread name must be done after thread has started
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@25337 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
-rw-r--r--xbmc/utils/JobManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xbmc/utils/JobManager.cpp b/xbmc/utils/JobManager.cpp
index cb85cfefe4..f4e90e922b 100644
--- a/xbmc/utils/JobManager.cpp
+++ b/xbmc/utils/JobManager.cpp
@@ -35,7 +35,6 @@ bool CJob::ShouldCancel(unsigned int progress, unsigned int total) const
CJobWorker::CJobWorker(CJobManager *manager)
{
m_jobManager = manager;
- SetName("Jobworker");
Create(true); // start work immediately, and kill ourselves when we're done
}
@@ -52,6 +51,7 @@ CJobWorker::~CJobWorker()
void CJobWorker::Process()
{
SetPriority( GetMinPriority() );
+ SetName("Jobworker");
while (true)
{
// request an item from our manager (this call is blocking)