aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorMelanie Thielker2016-05-23 19:20:05 +0200
committerMelanie Thielker2016-05-23 19:20:05 +0200
commit08bd80f5f4597b7841c02063fa53723cabcc3c4d (patch)
treee3651d867887ea4b979a4e0c61a94018359fc94a
parentFixed discrepancy between code and ini symbols. (diff)
parentMinor improvement over the previous commit -- make sure the code exists in th... (diff)
downloadopensim-SC_OLD-08bd80f5f4597b7841c02063fa53723cabcc3c4d.zip
opensim-SC_OLD-08bd80f5f4597b7841c02063fa53723cabcc3c4d.tar.gz
opensim-SC_OLD-08bd80f5f4597b7841c02063fa53723cabcc3c4d.tar.bz2
opensim-SC_OLD-08bd80f5f4597b7841c02063fa53723cabcc3c4d.tar.xz
Merge branch 'master' of opensimulator.org:/var/git/opensim
-rw-r--r--OpenSim/Framework/Monitoring/WorkManager.cs5
-rw-r--r--OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs7
-rwxr-xr-xOpenSim/Region/Framework/Scenes/SceneGraph.cs1
-rw-r--r--ThirdParty/SmartThreadPool/SmartThreadPool.cs5
4 files changed, 14 insertions, 4 deletions
diff --git a/OpenSim/Framework/Monitoring/WorkManager.cs b/OpenSim/Framework/Monitoring/WorkManager.cs
index d1a74ce..a7a03a0 100644
--- a/OpenSim/Framework/Monitoring/WorkManager.cs
+++ b/OpenSim/Framework/Monitoring/WorkManager.cs
@@ -121,7 +121,8 @@ namespace OpenSim.Framework.Monitoring
121 Thread thread = new Thread(start); 121 Thread thread = new Thread(start);
122 thread.Priority = priority; 122 thread.Priority = priority;
123 thread.IsBackground = isBackground; 123 thread.IsBackground = isBackground;
124 124 thread.Name = name;
125
125 Watchdog.ThreadWatchdogInfo twi 126 Watchdog.ThreadWatchdogInfo twi
126 = new Watchdog.ThreadWatchdogInfo(thread, timeout, name) 127 = new Watchdog.ThreadWatchdogInfo(thread, timeout, name)
127 { AlarmIfTimeout = alarmIfTimeout, AlarmMethod = alarmMethod }; 128 { AlarmIfTimeout = alarmIfTimeout, AlarmMethod = alarmMethod };
@@ -129,7 +130,7 @@ namespace OpenSim.Framework.Monitoring
129 Watchdog.AddThread(twi, name, log:log); 130 Watchdog.AddThread(twi, name, log:log);
130 131
131 thread.Start(); 132 thread.Start();
132 thread.Name = name; 133
133 134
134 return thread; 135 return thread;
135 } 136 }
diff --git a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
index d4a929c..ba8b1ee 100644
--- a/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
+++ b/OpenSim/Region/CoreModules/Framework/InventoryAccess/InventoryAccessModule.cs
@@ -187,6 +187,13 @@ namespace OpenSim.Region.CoreModules.Framework.InventoryAccess
187 InventoryFolderBase f = new InventoryFolderBase(folderID, remoteClient.AgentId); 187 InventoryFolderBase f = new InventoryFolderBase(folderID, remoteClient.AgentId);
188 InventoryFolderBase folder = m_Scene.InventoryService.GetFolder(f); 188 InventoryFolderBase folder = m_Scene.InventoryService.GetFolder(f);
189 189
190 if (folder == null && Enum.IsDefined(typeof(FolderType), (sbyte)invType))
191 {
192 folder = m_Scene.InventoryService.GetFolderForType(remoteClient.AgentId, (FolderType)invType);
193 if (folder != null)
194 m_log.DebugFormat("[INVENTORY ACCESS MODULE]: Requested folder not found but found folder for type {0}", invType);
195 }
196
190 if (folder == null || folder.Owner != remoteClient.AgentId) 197 if (folder == null || folder.Owner != remoteClient.AgentId)
191 return; 198 return;
192 199
diff --git a/OpenSim/Region/Framework/Scenes/SceneGraph.cs b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
index 2ecb55b..f9f795f 100755
--- a/OpenSim/Region/Framework/Scenes/SceneGraph.cs
+++ b/OpenSim/Region/Framework/Scenes/SceneGraph.cs
@@ -219,6 +219,7 @@ namespace OpenSim.Region.Framework.Scenes
219 // position). 219 // position).
220 // 220 //
221 // Therefore, JointMoved and JointDeactivated events will be fired as a result of the following Simulate(). 221 // Therefore, JointMoved and JointDeactivated events will be fired as a result of the following Simulate().
222
222 return PhysicsScene.Simulate((float)elapsed); 223 return PhysicsScene.Simulate((float)elapsed);
223 } 224 }
224 225
diff --git a/ThirdParty/SmartThreadPool/SmartThreadPool.cs b/ThirdParty/SmartThreadPool/SmartThreadPool.cs
index 615518e..9043d3a 100644
--- a/ThirdParty/SmartThreadPool/SmartThreadPool.cs
+++ b/ThirdParty/SmartThreadPool/SmartThreadPool.cs
@@ -689,9 +689,10 @@ namespace Amib.Threading
689#if !(_SILVERLIGHT) && !(WINDOWS_PHONE) 689#if !(_SILVERLIGHT) && !(WINDOWS_PHONE)
690 workerThread.Priority = _stpStartInfo.ThreadPriority; 690 workerThread.Priority = _stpStartInfo.ThreadPriority;
691#endif 691#endif
692 workerThread.Start();
693 workerThread.Name = string.Format("STP:{0}:{1}", Name, _threadCounter); 692 workerThread.Name = string.Format("STP:{0}:{1}", Name, _threadCounter);
694 ++_threadCounter; 693 workerThread.Start();
694
695 ++_threadCounter;
695 696
696 // Add it to the dictionary and update its creation time. 697 // Add it to the dictionary and update its creation time.
697 _workerThreads[workerThread] = new ThreadEntry(this); 698 _workerThreads[workerThread] = new ThreadEntry(this);