mirror of
https://github.com/farcasclaudiu/SmartThreadPool.git
synced 2026-06-28 09:01:04 +03:00
CHG: build fixes
(cherry picked from commit 2cd2bcec402a467c974a3106c3b1001dd4ed4ea4)
This commit is contained in:
committed by
Piotr Wysocki
parent
cbb3211c12
commit
6ba0034f49
@@ -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;
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user