aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Capabilities/Caps.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Capabilities/Caps.cs')
-rw-r--r--OpenSim/Capabilities/Caps.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/OpenSim/Capabilities/Caps.cs b/OpenSim/Capabilities/Caps.cs
index bbf3b27..30a323e 100644
--- a/OpenSim/Capabilities/Caps.cs
+++ b/OpenSim/Capabilities/Caps.cs
@@ -30,6 +30,7 @@ using System.Collections;
30using System.Collections.Generic; 30using System.Collections.Generic;
31using System.IO; 31using System.IO;
32using System.Reflection; 32using System.Reflection;
33using System.Threading;
33using log4net; 34using log4net;
34using Nini.Config; 35using Nini.Config;
35using OpenMetaverse; 36using OpenMetaverse;
@@ -72,6 +73,7 @@ namespace OpenSim.Framework.Capabilities
72 private IHttpServer m_httpListener; 73 private IHttpServer m_httpListener;
73 private UUID m_agentID; 74 private UUID m_agentID;
74 private string m_regionName; 75 private string m_regionName;
76 private ManualResetEvent m_capsActive = new ManualResetEvent(false);
75 77
76 public UUID AgentID 78 public UUID AgentID
77 { 79 {
@@ -252,5 +254,16 @@ namespace OpenSim.Framework.Capabilities
252 254
253 return caps; 255 return caps;
254 } 256 }
257
258 public void Activate()
259 {
260 m_capsActive.Set();
261 }
262
263 public bool WaitForActivation()
264 {
265 // Wait for 30s. If that elapses, return false and run without caps
266 return m_capsActive.WaitOne(30000);
267 }
255 } 268 }
256} \ No newline at end of file 269} \ No newline at end of file