From 9a837d8c9715306ac1afa299e743173a6f946ea0 Mon Sep 17 00:00:00 2001 From: "Douglas R. Miles" Date: Fri, 18 Jan 2013 21:50:40 -0800 Subject: [PATCH] Added #if (COGBOT_LIBOMV || USE_STHREADS) for when ran from cogbot's libomv --- .../Radegast.Plugin.Speech/RadSpeech/Conversation/Control.cs | 8 +++++++- plugins/Radegast.Plugin.Speech/RadSpeech/Talk/Control.cs | 10 ++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/plugins/Radegast.Plugin.Speech/RadSpeech/Conversation/Control.cs b/plugins/Radegast.Plugin.Speech/RadSpeech/Conversation/Control.cs index 32899a2..f68893c 100644 --- a/plugins/Radegast.Plugin.Speech/RadSpeech/Conversation/Control.cs +++ b/plugins/Radegast.Plugin.Speech/RadSpeech/Conversation/Control.cs @@ -6,7 +6,13 @@ using OpenMetaverse; using Radegast; using System.Text.RegularExpressions; using System.Net; -using System.Windows.Forms; +using System.Windows.Forms; +#if (COGBOT_LIBOMV || USE_STHREADS) +using ThreadPoolUtil; +using Thread = ThreadPoolUtil.Thread; +using ThreadPool = ThreadPoolUtil.ThreadPool; +using Monitor = ThreadPoolUtil.Monitor; +#endif using System.Threading; namespace RadegastSpeech.Conversation diff --git a/plugins/Radegast.Plugin.Speech/RadSpeech/Talk/Control.cs b/plugins/Radegast.Plugin.Speech/RadSpeech/Talk/Control.cs index 45a0237..21e4ee0 100644 --- a/plugins/Radegast.Plugin.Speech/RadSpeech/Talk/Control.cs +++ b/plugins/Radegast.Plugin.Speech/RadSpeech/Talk/Control.cs @@ -5,8 +5,14 @@ using System.Text; using System.IO; using System.Threading; using OpenMetaverse; -using Radegast; - +using Radegast; + +#if (COGBOT_LIBOMV || USE_STHREADS) +using ThreadPoolUtil; +using Thread = ThreadPoolUtil.Thread; +using ThreadPool = ThreadPoolUtil.ThreadPool; +using Monitor = ThreadPoolUtil.Monitor; +#endif namespace RadegastSpeech.Talk { -- 2.11.0