Add threading lib deps.

This commit is contained in:
markpollack
2010-04-08 21:04:38 +00:00
parent 554ba5dc55
commit 78f4775b30
5 changed files with 25 additions and 19 deletions

View File

@@ -3,6 +3,7 @@ using System;
using System.Collections;
using System.Threading;
using Spring.Pool;
using Spring.Pool.Support;
using Spring.Threading;
namespace Spring.Examples.Pool
@@ -20,7 +21,7 @@ namespace Spring.Examples.Pool
// ah, self documenting code:
// Here you can see that we decided to let the
// executor process all the currently queued tasks.
QueuedExecutor executor = o as QueuedExecutor;
QueuedExecutor executor = o as Spring.Threading.QueuedExecutor;
executor.ShutdownAfterProcessingCurrentlyQueuedTasks();
}
//// </example>
@@ -110,7 +111,7 @@ namespace Spring.Examples.Pool
public class PooledQueuedExecutor : IExecutor
{
Spring.Pool.SimplePool pool;
SimplePool pool;
private IList syncs;
class Queuer
@@ -173,7 +174,12 @@ namespace Spring.Examples.Pool
// queue the task and remember its ISync ...
syncs.Add(Queuer.Queue(pool, runnable));
}
public void Execute(Action action)
{
throw new NotImplementedException();
}
//// <example name="stop">
public void Stop ()
{

View File

@@ -1,7 +1,7 @@
<Project DefaultTargets="Build" ToolsVersion="3.5" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>8.0.30729</ProductVersion>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{C261D9ED-85C3-4B35-BE48-7156F5B17430}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
@@ -75,9 +75,13 @@
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<ItemGroup>
<Reference Include="log4net">
<Name>log4net</Name>
<HintPath>..\..\..\lib\Net\1.1\log4net.dll</HintPath>
<Reference Include="LinqBridge, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c2b14eb747628076, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\net\2.0\LinqBridge.dll</HintPath>
</Reference>
<Reference Include="Spring.Threading, Version=1.0.0.19912, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>lib\net\2.0\Spring.Threading.dll</HintPath>
</Reference>
<Reference Include="System">
<Name>System</Name>
@@ -94,11 +98,6 @@
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<ProjectReference Include="..\..\..\src\Spring\Spring.Core\Spring.Core.2008.csproj">
<Name>Spring.Core</Name>
<Project>{710961A3-0DF4-49E4-A26E-F5B9C044AC84}</Project>
<Package>{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</Package>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Compile Include="Examples\Pool\Grep.cs">
@@ -108,6 +107,12 @@
<SubType>Code</SubType>
</Compile>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\src\Spring\Spring.Core\Spring.Core.2008.csproj">
<Project>{710961A3-0DF4-49E4-A26E-F5B9C044AC84}</Project>
<Name>Spring.Core.2008</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PreBuildEvent>

View File

@@ -1,7 +1,7 @@
<VisualStudioProject>
<CSHARP
ProjectType = "Local"
ProductVersion = "7.10.3077"
ProductVersion = "7.10.6030"
SchemaVersion = "2.0"
ProjectGuid = "{C261D9ED-85C3-4B35-BE48-7156F5B17430}"
>
@@ -79,11 +79,6 @@
AssemblyName = "System.Xml"
HintPath = "..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.XML.dll"
/>
<Reference
Name = "log4net"
AssemblyName = "log4net"
HintPath = "..\..\..\lib\Net\1.1\log4net.dll"
/>
<Reference
Name = "System.Web"
AssemblyName = "System.Web"
@@ -95,7 +90,7 @@
HintPath = "..\..\..\..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.1.4322\System.Web.Services.dll"
/>
<Reference
Name = "Spring.Core"
Name = "Spring.Core.2003"
Project = "{710961A3-0DF4-49E4-A26E-F5B9C044AC84}"
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
/>