* Removed OpenSim.Data.NHibernate

* Replaced calls to ThreadPool.QueueUserWorkItem() with ThreadPool.UnsafeQueueUserWorkItem() since OpenSim does not use Code Access Security sandboxing
This commit is contained in:
John Hurliman
2009-10-19 16:52:27 -07:00
parent 72078195c2
commit fdce1be3db
103 changed files with 13 additions and 7726 deletions

View File

@@ -403,7 +403,7 @@ namespace OpenSim.Framework.Communications
/// In case, we are invoked asynchroneously this object will keep track of the state
/// </summary>
AsyncResult<Stream> ar = new AsyncResult<Stream>(callback, state);
ThreadPool.QueueUserWorkItem(RequestHelper, ar);
ThreadPool.UnsafeQueueUserWorkItem(RequestHelper, ar);
return ar;
}

View File

@@ -66,7 +66,7 @@ namespace OpenSim.Framework
for (int i = 0; i < threadCount; i++)
{
ThreadPool.QueueUserWorkItem(
ThreadPool.UnsafeQueueUserWorkItem(
delegate(object o)
{
int threadIndex = (int)o;
@@ -122,7 +122,7 @@ namespace OpenSim.Framework
for (int i = 0; i < threadCount; i++)
{
ThreadPool.QueueUserWorkItem(
ThreadPool.UnsafeQueueUserWorkItem(
delegate(object o)
{
int threadIndex = (int)o;
@@ -178,7 +178,7 @@ namespace OpenSim.Framework
for (int i = 0; i < threadCount; i++)
{
ThreadPool.QueueUserWorkItem(
ThreadPool.UnsafeQueueUserWorkItem(
delegate(object o)
{
int threadIndex = (int)o;

View File

@@ -1609,7 +1609,7 @@ namespace OpenSim.Framework.Servers.HttpServer
//while (true)
//{
// context = m_httpListener.GetContext();
// ThreadPool.QueueUserWorkItem(new WaitCallback(HandleRequest), context);
// ThreadPool.UnsafeQueueUserWorkItem(new WaitCallback(HandleRequest), context);
// }
}
catch (Exception e)