Added Work Item passive timeout

This commit is contained in:
Ami Bar
2009-12-19 20:49:16 +02:00
parent 5d037fdec8
commit ccfd49f237
6 changed files with 166 additions and 10 deletions
+2 -1
View File
@@ -155,6 +155,7 @@ namespace SmartThreadPoolTests
stp.Shutdown();
}
/// <summary>
/// 1. Create STP in suspended mode
/// 2. Queue work item into the STP
@@ -173,7 +174,7 @@ namespace SmartThreadPoolTests
stpStartInfo.StartSuspended = true;
SmartThreadPool stp = new SmartThreadPool(stpStartInfo);
IWorkItemResult wir = stp.QueueWorkItem(state => { return null; });
IWorkItemResult wir = stp.QueueWorkItem(state => null);
int counter = 0;