mirror of
https://github.com/farcasclaudiu/SmartThreadPool.git
synced 2026-06-22 09:01:19 +03:00
Added refactorings suggested by Simon Cropp
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using Amib.Threading;
|
||||
|
||||
@@ -11,7 +12,7 @@ namespace Examples
|
||||
|
||||
IWorkItemsGroup wig = smartThreadPool.CreateWorkItemsGroup(1);
|
||||
|
||||
wig.OnIdle += new WorkItemsGroupIdleHandler(wig_OnIdle);
|
||||
wig.OnIdle += wig_OnIdle;
|
||||
|
||||
foreach(object state in states)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user