diff options
author | BlueWall | 2013-01-23 08:16:18 -0500 |
---|---|---|
committer | BlueWall | 2013-01-23 08:16:18 -0500 |
commit | 2841ed05cf003fef8dc820d0327c1fcce0d76e93 (patch) | |
tree | 2d3647e4ffad8220e5b30fbdfbf7b3a36be0597c /OpenSim/Framework/Util.cs | |
parent | Add additional return status (diff) | |
parent | BulletSim: Tweeks to vehicle motion. (diff) | |
download | opensim-SC-2841ed05cf003fef8dc820d0327c1fcce0d76e93.zip opensim-SC-2841ed05cf003fef8dc820d0327c1fcce0d76e93.tar.gz opensim-SC-2841ed05cf003fef8dc820d0327c1fcce0d76e93.tar.bz2 opensim-SC-2841ed05cf003fef8dc820d0327c1fcce0d76e93.tar.xz |
Merge branch 'master' of /home/opensim/var/repo/opensim
Diffstat (limited to 'OpenSim/Framework/Util.cs')
-rw-r--r-- | OpenSim/Framework/Util.cs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/OpenSim/Framework/Util.cs b/OpenSim/Framework/Util.cs index f6c9d15..9b1e97d 100644 --- a/OpenSim/Framework/Util.cs +++ b/OpenSim/Framework/Util.cs | |||
@@ -1658,8 +1658,13 @@ namespace OpenSim.Framework | |||
1658 | if (m_ThreadPool != null) | 1658 | if (m_ThreadPool != null) |
1659 | throw new InvalidOperationException("SmartThreadPool is already initialized"); | 1659 | throw new InvalidOperationException("SmartThreadPool is already initialized"); |
1660 | 1660 | ||
1661 | m_ThreadPool = new SmartThreadPool(2000, maxThreads, 2); | 1661 | STPStartInfo startInfo = new STPStartInfo(); |
1662 | m_ThreadPool.Name = "Util"; | 1662 | startInfo.ThreadPoolName = "Util"; |
1663 | startInfo.IdleTimeout = 2000; | ||
1664 | startInfo.MaxWorkerThreads = maxThreads; | ||
1665 | startInfo.MinWorkerThreads = 2; | ||
1666 | |||
1667 | m_ThreadPool = new SmartThreadPool(startInfo); | ||
1663 | } | 1668 | } |
1664 | 1669 | ||
1665 | public static int FireAndForgetCount() | 1670 | public static int FireAndForgetCount() |