diff options
author | UbitUmarov | 2015-09-01 14:54:35 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-01 14:54:35 +0100 |
commit | 371c9dd2af01a2e7422ec901ee1f80757284a78c (patch) | |
tree | 058d2a513cacb12efcce0c0df0ae14ad135dbfe2 /OpenSim/Capabilities/Caps.cs | |
parent | remove lixo (diff) | |
parent | dont change camera on crossings (diff) | |
download | opensim-SC-371c9dd2af01a2e7422ec901ee1f80757284a78c.zip opensim-SC-371c9dd2af01a2e7422ec901ee1f80757284a78c.tar.gz opensim-SC-371c9dd2af01a2e7422ec901ee1f80757284a78c.tar.bz2 opensim-SC-371c9dd2af01a2e7422ec901ee1f80757284a78c.tar.xz |
bad merge?
Diffstat (limited to 'OpenSim/Capabilities/Caps.cs')
-rw-r--r-- | OpenSim/Capabilities/Caps.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/OpenSim/Capabilities/Caps.cs b/OpenSim/Capabilities/Caps.cs index 049afab..3efab8e 100644 --- a/OpenSim/Capabilities/Caps.cs +++ b/OpenSim/Capabilities/Caps.cs | |||
@@ -30,6 +30,7 @@ using System.Collections; | |||
30 | using System.Collections.Generic; | 30 | using System.Collections.Generic; |
31 | using System.IO; | 31 | using System.IO; |
32 | using System.Reflection; | 32 | using System.Reflection; |
33 | using System.Threading; | ||
33 | using log4net; | 34 | using log4net; |
34 | using Nini.Config; | 35 | using Nini.Config; |
35 | using OpenMetaverse; | 36 | using OpenMetaverse; |
@@ -71,6 +72,7 @@ namespace OpenSim.Framework.Capabilities | |||
71 | private IHttpServer m_httpListener; | 72 | private IHttpServer m_httpListener; |
72 | private UUID m_agentID; | 73 | private UUID m_agentID; |
73 | private string m_regionName; | 74 | private string m_regionName; |
75 | private ManualResetEvent m_capsActive = new ManualResetEvent(false); | ||
74 | 76 | ||
75 | public UUID AgentID | 77 | public UUID AgentID |
76 | { | 78 | { |
@@ -136,6 +138,7 @@ namespace OpenSim.Framework.Capabilities | |||
136 | m_agentID = agent; | 138 | m_agentID = agent; |
137 | m_capsHandlers = new CapsHandlers(httpServer, httpListen, httpPort, (httpServer == null) ? false : httpServer.UseSSL); | 139 | m_capsHandlers = new CapsHandlers(httpServer, httpListen, httpPort, (httpServer == null) ? false : httpServer.UseSSL); |
138 | m_regionName = regionName; | 140 | m_regionName = regionName; |
141 | m_capsActive.Reset(); | ||
139 | } | 142 | } |
140 | 143 | ||
141 | /// <summary> | 144 | /// <summary> |
@@ -255,5 +258,16 @@ namespace OpenSim.Framework.Capabilities | |||
255 | 258 | ||
256 | return caps; | 259 | return caps; |
257 | } | 260 | } |
261 | |||
262 | public void Activate() | ||
263 | { | ||
264 | m_capsActive.Set(); | ||
265 | } | ||
266 | |||
267 | public bool WaitForActivation() | ||
268 | { | ||
269 | // Wait for 30s. If that elapses, return false and run without caps | ||
270 | return m_capsActive.WaitOne(120000); | ||
271 | } | ||
258 | } | 272 | } |
259 | } \ No newline at end of file | 273 | } \ No newline at end of file |