diff options
author | Justin Clark-Casey (justincc) | 2013-05-01 19:29:46 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2013-05-01 19:29:46 +0100 |
commit | 81a90e30c637f84e6ef5d1cf7c188c1f6db12eb3 (patch) | |
tree | 35b588ac6b6da669aa83db7828a40e152f7bca6a | |
parent | Add information about creating a PID file for robust to the Robust.ini and Ro... (diff) | |
download | opensim-SC-81a90e30c637f84e6ef5d1cf7c188c1f6db12eb3.zip opensim-SC-81a90e30c637f84e6ef5d1cf7c188c1f6db12eb3.tar.gz opensim-SC-81a90e30c637f84e6ef5d1cf7c188c1f6db12eb3.tar.bz2 opensim-SC-81a90e30c637f84e6ef5d1cf7c188c1f6db12eb3.tar.xz |
Add in-code exaplanation for the change in cancellation signalling in STP 2.2.3. Remove left in Console.WriteLine accidentally inserted in recent 206fb306
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | 2 | ||||
-rw-r--r-- | ThirdParty/SmartThreadPool/WorkItem.cs | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs index f9d3afc..887a317 100644 --- a/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs +++ b/OpenSim/Region/ScriptEngine/Shared/Instance/ScriptInstance.cs | |||
@@ -628,8 +628,6 @@ namespace OpenSim.Region.ScriptEngine.Shared.Instance | |||
628 | } | 628 | } |
629 | } | 629 | } |
630 | 630 | ||
631 | Console.WriteLine("Here9"); | ||
632 | |||
633 | lock (EventQueue) | 631 | lock (EventQueue) |
634 | { | 632 | { |
635 | workItem = m_CurrentWorkItem; | 633 | workItem = m_CurrentWorkItem; |
diff --git a/ThirdParty/SmartThreadPool/WorkItem.cs b/ThirdParty/SmartThreadPool/WorkItem.cs index f229d1f..185f10c 100644 --- a/ThirdParty/SmartThreadPool/WorkItem.cs +++ b/ThirdParty/SmartThreadPool/WorkItem.cs | |||
@@ -753,6 +753,16 @@ namespace Amib.Threading.Internal | |||
753 | } | 753 | } |
754 | else | 754 | else |
755 | { | 755 | { |
756 | // ************************** | ||
757 | // Stock SmartThreadPool 2.2.3 sets these to true and relies on the thread to check the | ||
758 | // WorkItem cancellation status. However, OpenSimulator uses a different mechanism to notify | ||
759 | // scripts of co-operative termination and the abort code also relies on this method | ||
760 | // returning false in order to implement a small wait. | ||
761 | // | ||
762 | // Therefore, as was the case previously with STP, we will not signal successful cancellation | ||
763 | // here. It's possible that OpenSimulator code could be changed in the future to remove | ||
764 | // the need for this change. | ||
765 | // ************************** | ||
756 | success = false; | 766 | success = false; |
757 | signalComplete = false; | 767 | signalComplete = false; |
758 | } | 768 | } |