aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine/XWorkItem.cs
diff options
context:
space:
mode:
authorRobert Adams2013-05-01 12:08:12 -0700
committerRobert Adams2013-05-01 12:08:12 -0700
commitfca4e4ec7c044921ba602862c5a42900f819015a (patch)
treef3a1e0b09b7a454009437dd9b1015891a85eadb8 /OpenSim/Region/ScriptEngine/XEngine/XWorkItem.cs
parentBulletSim: improvements to LinksetCompound and PrimDisplaced. Not all working... (diff)
parentAdd in-code exaplanation for the change in cancellation signalling in STP 2.2... (diff)
downloadopensim-SC_OLD-fca4e4ec7c044921ba602862c5a42900f819015a.zip
opensim-SC_OLD-fca4e4ec7c044921ba602862c5a42900f819015a.tar.gz
opensim-SC_OLD-fca4e4ec7c044921ba602862c5a42900f819015a.tar.bz2
opensim-SC_OLD-fca4e4ec7c044921ba602862c5a42900f819015a.tar.xz
Merge branch 'master' into bulletsim4
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XWorkItem.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XWorkItem.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XWorkItem.cs b/OpenSim/Region/ScriptEngine/XEngine/XWorkItem.cs
index 8dd7677..9d9dee1 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XWorkItem.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XWorkItem.cs
@@ -52,16 +52,16 @@ namespace OpenSim.Region.ScriptEngine.XEngine
52 return wr.Cancel(); 52 return wr.Cancel();
53 } 53 }
54 54
55 public void Abort() 55 public bool Abort()
56 { 56 {
57 wr.Abort(); 57 return wr.Cancel(true);
58 } 58 }
59 59
60 public bool Wait(int t) 60 public bool Wait(int t)
61 { 61 {
62 // We use the integer version of WaitAll because the current version of SmartThreadPool has a bug with the 62 // We use the integer version of WaitAll because the current version of SmartThreadPool has a bug with the
63 // TimeSpan version. The number of milliseconds in TimeSpan is an int64 so when STP casts it down to an 63 // TimeSpan version. The number of milliseconds in TimeSpan is an int64 so when STP casts it down to an
64 // int (32-bit) we can end up with bad values. This occurs on Windows though curious not on Mono 2.10.8 64 // int (32-bit) we can end up with bad values. This occurs on Windows though curiously not on Mono 2.10.8
65 // (or very likely other versions of Mono at least up until 3.0.3). 65 // (or very likely other versions of Mono at least up until 3.0.3).
66 return SmartThreadPool.WaitAll(new IWorkItemResult[] {wr}, t, false); 66 return SmartThreadPool.WaitAll(new IWorkItemResult[] {wr}, t, false);
67 } 67 }