mirror of
https://github.com/farcasclaudiu/SmartThreadPool.git
synced 2026-06-22 11:01:28 +03:00
Added refactorings suggested by Simon Cropp
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using UsageControl;
|
||||
using Amib.Threading;
|
||||
@@ -180,7 +177,7 @@ namespace WorkItemsGroupDemo
|
||||
{
|
||||
lblStatus6.Text = _stp.IsIdle ? "Idle" : "Working";
|
||||
|
||||
object [] statesWorking = null;
|
||||
object[] statesWorking;
|
||||
lock (_workingStates.SyncRoot)
|
||||
{
|
||||
statesWorking = new object[_workingStates.Count];
|
||||
|
||||
Reference in New Issue
Block a user