增加项目,分层
This commit is contained in:
1 parent
6e995a5bdb
commit
0a3e5af6a9
234 files changed
+26994
-1
No files matched your search
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Store.Framework.ThreadManage
|
||||
{
|
||||
public static class ThreadManagerPool
|
||||
{
|
||||
private static ThreadManager _manager;
|
||||
|
||||
public static int CountThread { get; set; }
|
||||
public static int CountActiveThread { get => _manager.CountActiveThreads; }
|
||||
|
||||
static ThreadManagerPool()
|
||||
{
|
||||
_manager = new ThreadManager(CountThread);
|
||||
_manager.Start();
|
||||
}
|
||||
|
||||
public static void AddTask(WorkAction action)
|
||||
{
|
||||
_manager.AddTask(action, false);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user