aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
diff options
context:
space:
mode:
authorJeff Ames2008-02-05 03:20:51 +0000
committerJeff Ames2008-02-05 03:20:51 +0000
commit99844ee4c0b6f844c8f8be7488131e2cc72ea21e (patch)
tree8740092af3fc8e215a4bbc9e00950ca1a26fef16 /OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
parentUpdated svn properties. (diff)
downloadopensim-SC_OLD-99844ee4c0b6f844c8f8be7488131e2cc72ea21e.zip
opensim-SC_OLD-99844ee4c0b6f844c8f8be7488131e2cc72ea21e.tar.gz
opensim-SC_OLD-99844ee4c0b6f844c8f8be7488131e2cc72ea21e.tar.bz2
opensim-SC_OLD-99844ee4c0b6f844c8f8be7488131e2cc72ea21e.tar.xz
Added copyright statements.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs36
1 files changed, 29 insertions, 7 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
index b239965..ee38306 100644
--- a/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
+++ b/OpenSim/Region/ScriptEngine/Common/ScriptEngineBase/EventQueueThreadClass.cs
@@ -1,4 +1,32 @@
1using System; 1/*
2* Copyright (c) Contributors, http://opensimulator.org/
3* See CONTRIBUTORS.TXT for a full list of copyright holders.
4*
5* Redistribution and use in source and binary forms, with or without
6* modification, are permitted provided that the following conditions are met:
7* * Redistributions of source code must retain the above copyright
8* notice, this list of conditions and the following disclaimer.
9* * Redistributions in binary form must reproduce the above copyright
10* notice, this list of conditions and the following disclaimer in the
11* documentation and/or other materials provided with the distribution.
12* * Neither the name of the OpenSim Project nor the
13* names of its contributors may be used to endorse or promote products
14* derived from this software without specific prior written permission.
15*
16* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
17* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
20* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
23* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
25* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26*
27*/
28
29using System;
2using System.Collections.Generic; 30using System.Collections.Generic;
3using System.Text; 31using System.Text;
4using System.Threading; 32using System.Threading;
@@ -42,7 +70,6 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
42 Stop(); 70 Stop();
43 } 71 }
44 72
45
46 public void ReadConfig() 73 public void ReadConfig()
47 { 74 {
48 ScriptEngineName = eventQueueManager.m_ScriptEngine.ScriptEngineName; 75 ScriptEngineName = eventQueueManager.m_ScriptEngine.ScriptEngineName;
@@ -77,16 +104,13 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
77 if (EventQueueThread != null) 104 if (EventQueueThread != null)
78 if (EventQueueThread.IsAlive) 105 if (EventQueueThread.IsAlive)
79 EventQueueThread.Priority = MyThreadPriority; 106 EventQueueThread.Priority = MyThreadPriority;
80
81 } 107 }
82 108
83
84 /// <summary> 109 /// <summary>
85 /// Start thread 110 /// Start thread
86 /// </summary> 111 /// </summary>
87 private void Start() 112 private void Start()
88 { 113 {
89
90 EventQueueThread = new Thread(EventQueueThreadLoop); 114 EventQueueThread = new Thread(EventQueueThreadLoop);
91 EventQueueThread.IsBackground = true; 115 EventQueueThread.IsBackground = true;
92 116
@@ -118,7 +142,6 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
118 } 142 }
119 } 143 }
120 144
121
122 /// <summary> 145 /// <summary>
123 /// Queue processing thread loop 146 /// Queue processing thread loop
124 /// </summary> 147 /// </summary>
@@ -157,7 +180,6 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
157 } 180 }
158 } 181 }
159 182
160
161 //try 183 //try
162 // { 184 // {
163 EventQueueManager.QueueItemStruct QIS = BlankQIS; 185 EventQueueManager.QueueItemStruct QIS = BlankQIS;