OSDN Git Service

Added #if (COGBOT_LIBOMV || USE_STHREADS) for when ran from cogbot's libomv
authorDouglas R. Miles <logicmoo@gmail.com>
Sat, 19 Jan 2013 05:49:26 +0000 (21:49 -0800)
committerDouglas R. Miles <logicmoo@gmail.com>
Sat, 19 Jan 2013 05:49:26 +0000 (21:49 -0800)
Radegast/Core/Commands/CommandsManager.cs
Radegast/Core/Commands/ThreadCommand.cs
Radegast/Core/Media/MediaManager.cs
Radegast/Core/NameManager.cs
Radegast/Core/PrimDeserializer.cs
Radegast/Core/Types/MapControl.cs
Radegast/Core/Updater/UpdateChecker.cs

index e6060fa..e2e66b5 100644 (file)
 //
 using System;
 using System.Collections.Generic;
+#if (COGBOT_LIBOMV || USE_STHREADS)
+using ThreadPoolUtil;
+using Thread = ThreadPoolUtil.Thread;
+using ThreadPool = ThreadPoolUtil.ThreadPool;
+using Monitor = ThreadPoolUtil.Monitor;
+#endif
 using System.Threading;
 using OpenMetaverse;
 
index f966c62..91a34ea 100644 (file)
 //
 using System;
 using System.Collections.Generic;
+#if (COGBOT_LIBOMV || USE_STHREADS)
+using ThreadPoolUtil;
+using Thread = ThreadPoolUtil.Thread;
+using ThreadPool = ThreadPoolUtil.ThreadPool;
+using Monitor = ThreadPoolUtil.Monitor;
+#endif
 using System.Threading;
 
 namespace Radegast.Commands
index e3eeb58..25b6a1e 100644 (file)
@@ -35,6 +35,12 @@ using FMOD;
 using System.Threading;
 using OpenMetaverse;
 using OpenMetaverse.Assets;
+#if (COGBOT_LIBOMV || USE_STHREADS)
+using ThreadPoolUtil;
+using Thread = ThreadPoolUtil.Thread;
+using ThreadPool = ThreadPoolUtil.ThreadPool;
+using Monitor = ThreadPoolUtil.Monitor;
+#endif
 
 namespace Radegast.Media
 {
index 5d84536..7e71c05 100644 (file)
@@ -33,6 +33,12 @@ using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
+#if (COGBOT_LIBOMV || USE_STHREADS)
+using ThreadPoolUtil;
+using Thread = ThreadPoolUtil.Thread;
+using ThreadPool = ThreadPoolUtil.ThreadPool;
+using Monitor = ThreadPoolUtil.Monitor;
+#endif
 using System.Threading;
 using System.IO;
 using OpenMetaverse;
index 517f6c0..be3fc95 100644 (file)
 //
 using System;
 using System.Collections.Generic;
+#if (COGBOT_LIBOMV || USE_STHREADS)
+using ThreadPoolUtil;
+using Thread = ThreadPoolUtil.Thread;
+using ThreadPool = ThreadPoolUtil.ThreadPool;
+using Monitor = ThreadPoolUtil.Monitor;
+#endif
 using System.Threading;
 using System.Windows.Forms;
 using OpenMetaverse;
@@ -52,7 +58,7 @@ namespace Radegast
             if (res == DialogResult.OK)
             {
 
-                System.Threading.Thread t = new System.Threading.Thread(new System.Threading.ThreadStart(delegate()
+                Thread t = new Thread(new System.Threading.ThreadStart(delegate()
                 {
                     try
                     {
index 7515b3a..5f746d9 100644 (file)
@@ -9,6 +9,12 @@ using System.Windows.Forms;
 using System.Net;
 using System.Text.RegularExpressions;
 using System.IO;
+#if (COGBOT_LIBOMV || USE_STHREADS)
+using ThreadPoolUtil;
+using Thread = ThreadPoolUtil.Thread;
+using ThreadPool = ThreadPoolUtil.ThreadPool;
+using Monitor = ThreadPoolUtil.Monitor;
+#endif
 using System.Threading;
 using OpenMetaverse;
 using OpenMetaverse.Http;
index 53b2911..58657bd 100644 (file)
@@ -35,8 +35,15 @@ using System.Reflection;
 using System.Net;
 using OpenMetaverse;
 using OpenMetaverse.StructuredData;
+#if (COGBOT_LIBOMV || USE_STHREADS)
+using ThreadPoolUtil;
+using Thread = ThreadPoolUtil.Thread;
+using ThreadPool = ThreadPoolUtil.ThreadPool;
+using Monitor = ThreadPoolUtil.Monitor;
+#endif
 using System.Threading;
 
+
 namespace Radegast
 {
     public class UpdateChecker : IDisposable