aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
authorOren Hurvitz2014-06-12 15:02:25 +0300
committerOren Hurvitz2014-07-21 08:30:17 +0100
commit48d1cca30338f087ccb26ec2d00dea183a32fff8 (patch)
tree3f554de2e787e8729bffb700c55b98db378828bc /OpenSim/Framework/Util.cs
parentEliminated some warnings (diff)
downloadopensim-SC-48d1cca30338f087ccb26ec2d00dea183a32fff8.zip
opensim-SC-48d1cca30338f087ccb26ec2d00dea183a32fff8.tar.gz
opensim-SC-48d1cca30338f087ccb26ec2d00dea183a32fff8.tar.bz2
opensim-SC-48d1cca30338f087ccb26ec2d00dea183a32fff8.tar.xz
Better logging of threadpool activity in Overload mode: if we didn't log "Queue threadfunc" for a particular thread then don't log "Run threadfunc" or "End threadfunc" for that thread either.
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs8
1 files changed, 7 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index 5c429ee..2d0178e 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -2000,7 +2000,7 @@ namespace OpenSim.Framework
2000 { 2000 {
2001 ThreadFuncNum = threadFuncNum; 2001 ThreadFuncNum = threadFuncNum;
2002 this.context = context; 2002 this.context = context;
2003 LogThread = true; 2003 LogThread = false;
2004 Thread = null; 2004 Thread = null;
2005 Running = false; 2005 Running = false;
2006 Aborted = false; 2006 Aborted = false;
@@ -2181,6 +2181,12 @@ namespace OpenSim.Framework
2181 (LogThreadPool >= 2) ? full : partial); 2181 (LogThreadPool >= 2) ? full : partial);
2182 } 2182 }
2183 } 2183 }
2184 else
2185 {
2186 // Since we didn't log "Queue threadfunc", don't log "Run threadfunc" or "End threadfunc" either.
2187 // Those log lines aren't useful when we don't know which function is running in the thread.
2188 threadInfo.LogThread = false;
2189 }
2184 2190
2185 switch (FireAndForgetMethod) 2191 switch (FireAndForgetMethod)
2186 { 2192 {