using static TheBitBrine.ThreadDispatcher;
static void Main(string[] args)
{
for (int i = 0; i < 100; i++)
{
var Task = new Action<ThreadManager>(ThreadDummy);
var x = new ThreadManager() { Action = Task, ThreadName = $"Test" };
InitThread(x);
}
while (true)
{
var s = FindManagers("Test");
foreach (var item in s)
{
Console.WriteLine(item.Status);
}
Thread.Sleep(1000);
}
}
public static void ThreadDummy(ThreadManager Intake)
{
while (true)
{
Intake.Status = Intake.Thread.Name + " - " + DateTime.Now.Second.ToString();
Thread.Sleep(100);
}
}
-
Notifications
You must be signed in to change notification settings - Fork 0
thebitbrine/ThreadDispatcher
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published