CHG: build fixes

(cherry picked from commit 2cd2bcec402a467c974a3106c3b1001dd4ed4ea4)
This commit is contained in:
Michal Staszewski
2011-06-21 14:34:04 +02:00
committed by Piotr Wysocki
parent cbb3211c12
commit 6ba0034f49
3 changed files with 7 additions and 4 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ namespace SmartThreadPoolTests
wii.WorkItemPriority = WorkItemPriority.AboveNormal; wii.WorkItemPriority = WorkItemPriority.AboveNormal;
WorkItemInfoComparer wiic = new WorkItemInfoComparer(wii, state); WorkItemInfoComparer wiic = new WorkItemInfoComparer(wii, state);
IWorkItemResult wir = wig.QueueWorkItem(wiic.CompareWorkItemInfo, state, WorkItemPriority.AboveNormal); IWorkItemResult wir = wig.QueueWorkItem((WorkItemCallback) wiic.CompareWorkItemInfo, state, WorkItemPriority.AboveNormal);
bool success = (bool)wir.Result; bool success = (bool)wir.Result;
+4 -1
View File
@@ -91,7 +91,10 @@
<ErrorReport>prompt</ErrorReport> <ErrorReport>prompt</ErrorReport>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="nunit.framework, Version=2.5.2.9222, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL" /> <Reference Include="nunit.framework, Version=2.5.1.9189, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\lib\nunit.framework.dll</HintPath>
</Reference>
<Reference Include="System"> <Reference Include="System">
<Name>System</Name> <Name>System</Name>
</Reference> </Reference>
+2 -2
View File
@@ -294,7 +294,7 @@ namespace WorkItemsGroupDemo
spinIdleTimeout.Enabled = !start; spinIdleTimeout.Enabled = !start;
} }
private object DoNothing(object state) private void DoNothing(WorkItemState state)
{ {
WorkItemState workItemState = (WorkItemState)state; WorkItemState workItemState = (WorkItemState)state;
_workingStates.Add(workItemState.QueueUsageEntry, workItemState.QueueUsageEntry); _workingStates.Add(workItemState.QueueUsageEntry, workItemState.QueueUsageEntry);
@@ -310,7 +310,7 @@ namespace WorkItemsGroupDemo
} while (_paused); } while (_paused);
_workingStates.Remove(workItemState.QueueUsageEntry); _workingStates.Remove(workItemState.QueueUsageEntry);
return null; //return null;
} }