diff options
author | Melanie | 2009-10-27 11:32:11 +0000 |
---|---|---|
committer | Melanie | 2009-10-27 11:32:11 +0000 |
commit | 31a848e97bd984ab0a85feca397ce419f6ae839a (patch) | |
tree | 4743f5eb7c12b3723ed4b986d19714d1b3a0a3ea /OpenSim/Grid | |
parent | Commented out instrumentation in ODEPrim.cs (diff) | |
parent | Finally hunted down the Parallel deadlock. Packets were being handled asynchr... (diff) | |
download | opensim-SC-31a848e97bd984ab0a85feca397ce419f6ae839a.zip opensim-SC-31a848e97bd984ab0a85feca397ce419f6ae839a.tar.gz opensim-SC-31a848e97bd984ab0a85feca397ce419f6ae839a.tar.bz2 opensim-SC-31a848e97bd984ab0a85feca397ce419f6ae839a.tar.xz |
Merge branch 'master' into vehicles
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Grid/GridServer/GridServerBase.cs | 11 | ||||
-rw-r--r-- | OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs | 8 |
2 files changed, 9 insertions, 10 deletions
diff --git a/OpenSim/Grid/GridServer/GridServerBase.cs b/OpenSim/Grid/GridServer/GridServerBase.cs index d63ac2e..9b0d7ea 100644 --- a/OpenSim/Grid/GridServer/GridServerBase.cs +++ b/OpenSim/Grid/GridServer/GridServerBase.cs | |||
@@ -29,7 +29,6 @@ using System; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using System.IO; | 30 | using System.IO; |
31 | using System.Reflection; | 31 | using System.Reflection; |
32 | using System.Timers; | ||
33 | using log4net; | 32 | using log4net; |
34 | using Nini.Config; | 33 | using Nini.Config; |
35 | using OpenSim.Framework; | 34 | using OpenSim.Framework; |
@@ -115,11 +114,11 @@ namespace OpenSim.Grid.GridServer | |||
115 | 114 | ||
116 | protected virtual void LoadPlugins() | 115 | protected virtual void LoadPlugins() |
117 | { | 116 | { |
118 | PluginLoader<IGridPlugin> loader = | 117 | using (PluginLoader<IGridPlugin> loader = new PluginLoader<IGridPlugin>(new GridPluginInitialiser(this))) |
119 | new PluginLoader<IGridPlugin>(new GridPluginInitialiser(this)); | 118 | { |
120 | 119 | loader.Load("/OpenSim/GridServer"); | |
121 | loader.Load("/OpenSim/GridServer"); | 120 | m_plugins = loader.Plugins; |
122 | m_plugins = loader.Plugins; | 121 | } |
123 | } | 122 | } |
124 | 123 | ||
125 | public override void ShutdownSpecific() | 124 | public override void ShutdownSpecific() |
diff --git a/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs b/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs index 8ce353c..f24cef6 100644 --- a/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs +++ b/OpenSim/Grid/UserServer.Modules/MessageServersConnector.cs | |||
@@ -78,8 +78,6 @@ namespace OpenSim.Grid.UserServer.Modules | |||
78 | private OpenSim.Framework.BlockingQueue<PresenceNotification> m_NotifyQueue = | 78 | private OpenSim.Framework.BlockingQueue<PresenceNotification> m_NotifyQueue = |
79 | new OpenSim.Framework.BlockingQueue<PresenceNotification>(); | 79 | new OpenSim.Framework.BlockingQueue<PresenceNotification>(); |
80 | 80 | ||
81 | Thread m_NotifyThread; | ||
82 | |||
83 | private IGridServiceCore m_core; | 81 | private IGridServiceCore m_core; |
84 | 82 | ||
85 | public event AgentLocationDelegate OnAgentLocation; | 83 | public event AgentLocationDelegate OnAgentLocation; |
@@ -96,8 +94,8 @@ namespace OpenSim.Grid.UserServer.Modules | |||
96 | { | 94 | { |
97 | m_core = core; | 95 | m_core = core; |
98 | m_core.RegisterInterface<MessageServersConnector>(this); | 96 | m_core.RegisterInterface<MessageServersConnector>(this); |
99 | m_NotifyThread = new Thread(new ThreadStart(NotifyQueueRunner)); | 97 | |
100 | m_NotifyThread.Start(); | 98 | Watchdog.StartThread(NotifyQueueRunner, "NotifyQueueRunner", ThreadPriority.Normal, true); |
101 | } | 99 | } |
102 | 100 | ||
103 | public void PostInitialise() | 101 | public void PostInitialise() |
@@ -427,6 +425,8 @@ namespace OpenSim.Grid.UserServer.Modules | |||
427 | { | 425 | { |
428 | TellMessageServersAboutUserLogoffInternal(presence.agentID); | 426 | TellMessageServersAboutUserLogoffInternal(presence.agentID); |
429 | } | 427 | } |
428 | |||
429 | Watchdog.UpdateThread(); | ||
430 | } | 430 | } |
431 | } | 431 | } |
432 | 432 | ||