From 32ccd5bb40447ea4d96f1181cf73edff3645a55a Mon Sep 17 00:00:00 2001
From: John Hurliman
Date: Wed, 21 Oct 2009 23:03:18 -0700
Subject: * Changed the misc. methods calling
ThreadPool.UnsafeQueueUserWorkItem() to Util.FireAndForget() * Changed
Util.FireAndForget() to use any of five different methods set with
async_call_method in the [Startup] section of OpenSim.ini. Look at the
example config for possible values
---
OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
(limited to 'OpenSim/Region/ClientStack/LindenUDP')
diff --git a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
index 432fee7..0ba76ec 100644
--- a/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/LindenUDP/LLClientView.cs
@@ -791,7 +791,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// heightmap
public virtual void SendLayerData(float[] map)
{
- ThreadPool.UnsafeQueueUserWorkItem(DoSendLayerData, map);
+ Util.FireAndForget(DoSendLayerData, map);
}
///
@@ -931,7 +931,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// 16x16 array of wind speeds
public virtual void SendWindData(Vector2[] windSpeeds)
{
- ThreadPool.UnsafeQueueUserWorkItem(new WaitCallback(DoSendWindData), (object)windSpeeds);
+ Util.FireAndForget(DoSendWindData, windSpeeds);
}
///
@@ -940,7 +940,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP
/// 16x16 array of cloud densities
public virtual void SendCloudData(float[] cloudDensity)
{
- ThreadPool.UnsafeQueueUserWorkItem(new WaitCallback(DoSendCloudData), (object)cloudDensity);
+ Util.FireAndForget(DoSendCloudData, cloudDensity);
}
///
--
cgit v1.1