mirror of
https://github.com/farcasclaudiu/SmartThreadPool.git
synced 2026-06-22 07:01:18 +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;
|
||||
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;
|
||||
|
||||
|
||||
@@ -91,7 +91,10 @@
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<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">
|
||||
<Name>System</Name>
|
||||
</Reference>
|
||||
|
||||
@@ -294,7 +294,7 @@ namespace WorkItemsGroupDemo
|
||||
spinIdleTimeout.Enabled = !start;
|
||||
}
|
||||
|
||||
private object DoNothing(object state)
|
||||
private void DoNothing(WorkItemState state)
|
||||
{
|
||||
WorkItemState workItemState = (WorkItemState)state;
|
||||
_workingStates.Add(workItemState.QueueUsageEntry, workItemState.QueueUsageEntry);
|
||||
@@ -310,7 +310,7 @@ namespace WorkItemsGroupDemo
|
||||
} while (_paused);
|
||||
_workingStates.Remove(workItemState.QueueUsageEntry);
|
||||
|
||||
return null;
|
||||
//return null;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user