File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -201,12 +201,12 @@ public void CancelInProgressWorkItemSoftWithIgnoreSample()
201
201
/// 2. Queue work item that takes some time
202
202
/// 3. Wait for it to start
203
203
/// 4. Cancel the work item (soft)
204
- /// 5. Call to AbortOnWorkItemOnCancel
204
+ /// 5. Call to AbortOnWorkItemCancel
205
205
/// 5. Wait for the STP to get idle
206
- /// 6. Make sure nothing ran in the work item after the AbortOnWorkItemOnCancel
206
+ /// 6. Make sure nothing ran in the work item after the AbortOnWorkItemCancel
207
207
/// </summary>
208
208
[ Test ]
209
- public void CancelInProgressWorkItemSoftWithAbortOnWorkItemOnCancel ( )
209
+ public void CancelInProgressWorkItemSoftWithAbortOnWorkItemCancel ( )
210
210
{
211
211
bool abortFailed = false ;
212
212
ManualResetEvent waitToStart = new ManualResetEvent ( false ) ;
@@ -217,7 +217,7 @@ public void CancelInProgressWorkItemSoftWithAbortOnWorkItemOnCancel()
217
217
state => {
218
218
waitToStart . Set ( ) ;
219
219
waitToCancel . WaitOne ( ) ;
220
- SmartThreadPool . AbortOnWorkItemOnCancel ( ) ;
220
+ SmartThreadPool . AbortOnWorkItemCancel ( ) ;
221
221
abortFailed = true ;
222
222
return null ;
223
223
} ) ;
Original file line number Diff line number Diff line change @@ -125,12 +125,12 @@ public void TimeoutCompletedWorkItem()
125
125
/// 2. Queue work item that takes some time
126
126
/// 3. Wait for it to start
127
127
/// 4. Cancel the work item (soft)
128
- /// 5. Call to AbortOnWorkItemOnCancel
128
+ /// 5. Call to AbortOnWorkItemCancel
129
129
/// 5. Wait for the STP to get idle
130
- /// 6. Make sure nothing ran in the work item after the AbortOnWorkItemOnCancel
130
+ /// 6. Make sure nothing ran in the work item after the AbortOnWorkItemCancel
131
131
/// </summary>
132
132
[ Test ]
133
- public void TimeoutInProgressWorkItemSoftWithAbortOnWorkItemOnCancel ( )
133
+ public void TimeoutInProgressWorkItemSoftWithAbortOnWorkItemCancel ( )
134
134
{
135
135
bool abortFailed = false ;
136
136
ManualResetEvent waitToStart = new ManualResetEvent ( false ) ;
@@ -143,7 +143,7 @@ public void TimeoutInProgressWorkItemSoftWithAbortOnWorkItemOnCancel()
143
143
{
144
144
waitToStart . Set ( ) ;
145
145
Thread . Sleep ( 1000 ) ;
146
- SmartThreadPool . AbortOnWorkItemOnCancel ( ) ;
146
+ SmartThreadPool . AbortOnWorkItemCancel ( ) ;
147
147
abortFailed = true ;
148
148
return null ;
149
149
} ) ;
Original file line number Diff line number Diff line change @@ -1347,7 +1347,7 @@ public static bool IsWorkItemCanceled
1347
1347
/// Checks if the work item has been cancelled, and if yes then abort the thread.
1348
1348
/// Can be used with Cancel and timeout
1349
1349
/// </summary>
1350
- public static void AbortOnWorkItemOnCancel ( )
1350
+ public static void AbortOnWorkItemCancel ( )
1351
1351
{
1352
1352
if ( IsWorkItemCanceled )
1353
1353
{
You can’t perform that action at this time.
0 commit comments