mirror of
https://github.com/opensim/opensim.git
synced 2026-08-10 11:33:28 +08:00
Mostly debugging verbosity which I shall very shortly comment out.
Just want to try this out on windows quickly.
This commit is contained in:
@@ -64,5 +64,10 @@ namespace OpenSim.Framework
|
||||
return m_queue.Contains(item);
|
||||
}
|
||||
}
|
||||
|
||||
public int Count()
|
||||
{
|
||||
return m_queue.Count;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -43,6 +43,9 @@ namespace OpenSim.Region.Environment.Modules
|
||||
//and some small clean up
|
||||
public class TextureDownloadModule : IRegionModule
|
||||
{
|
||||
private static readonly log4net.ILog m_log
|
||||
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
private Scene m_scene;
|
||||
private List<Scene> m_scenes = new List<Scene>();
|
||||
|
||||
@@ -164,6 +167,8 @@ namespace OpenSim.Region.Environment.Modules
|
||||
m_queueSenders.Enqueue(sender);
|
||||
}
|
||||
}
|
||||
|
||||
m_log.Info(String.Format("[TEXTURE DOWNLOAD] Texture sender queue size: {0}", m_queueSenders.Count()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -174,4 +179,4 @@ namespace OpenSim.Region.Environment.Modules
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,7 +36,8 @@ namespace OpenSim.Region.Environment.Modules
|
||||
{
|
||||
public class TextureSender
|
||||
{
|
||||
private static readonly log4net.ILog m_log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
private static readonly log4net.ILog m_log
|
||||
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
public int counter = 0;
|
||||
private AssetBase m_asset;
|
||||
|
||||
@@ -37,6 +37,9 @@ namespace OpenSim.Region.Environment.Modules
|
||||
{
|
||||
public class UserTextureDownloadService
|
||||
{
|
||||
private static readonly log4net.ILog m_log
|
||||
= log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||
|
||||
private readonly Dictionary<LLUUID, TextureSender> m_textureSenders = new Dictionary<LLUUID, TextureSender>();
|
||||
private readonly BlockingQueue<TextureSender> m_sharedSendersQueue;
|
||||
private readonly Scene m_scene;
|
||||
@@ -98,9 +101,12 @@ namespace OpenSim.Region.Environment.Modules
|
||||
if (!textureSender.ImageLoaded)
|
||||
{
|
||||
textureSender.TextureReceived(asset);
|
||||
|
||||
EnqueueTextureSender(textureSender);
|
||||
}
|
||||
|
||||
m_log.Info(String.Format("[TEXTURE SENDER] Removing texture sender with uuid {0}", textureID));
|
||||
m_textureSenders.Remove(textureID);
|
||||
m_log.Info(String.Format("[TEXTURE SENDER] Current texture senders in dictionary: {0}", m_textureSenders.Count));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user