aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Util.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r--OpenSim/Framework/Util.cs11
1 files changed, 10 insertions, 1 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs
index f6ded04..5eedd29 100644
--- a/OpenSim/Framework/Util.cs
+++ b/OpenSim/Framework/Util.cs
@@ -2579,7 +2579,6 @@ namespace OpenSim.Framework
2579 } 2579 }
2580 catch (ThreadAbortException e) 2580 catch (ThreadAbortException e)
2581 { 2581 {
2582 m_log.Error(string.Format("Aborted threadfunc {0} ", threadFuncNum), e);
2583 } 2582 }
2584 catch (Exception e) 2583 catch (Exception e)
2585 { 2584 {
@@ -2852,6 +2851,16 @@ namespace OpenSim.Framework
2852 return stpi; 2851 return stpi;
2853 } 2852 }
2854 2853
2854 public static void StopThreadPool()
2855 {
2856 if (m_ThreadPool == null)
2857 return;
2858 SmartThreadPool pool = m_ThreadPool;
2859 m_ThreadPool = null;
2860
2861 try { pool.Shutdown(); } catch {}
2862 }
2863
2855 #endregion FireAndForget Threading Pattern 2864 #endregion FireAndForget Threading Pattern
2856 2865
2857 /// <summary> 2866 /// <summary>