Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManagedThreadPool #1

Open
inttny opened this issue Feb 23, 2018 · 0 comments
Open

ManagedThreadPool #1

inttny opened this issue Feb 23, 2018 · 0 comments

Comments

@inttny
Copy link
Owner

inttny commented Feb 23, 2018

Now I finished v0.1.0 beta.
This ManagedThreadPool owns 1 idle threads list and 1 busy threads list, these lists are public, so you can fetch any item you want.
What's more, you can also easily set the running threads count to the number you want(default 10) by calling method SetRunningThreads(int threadsCount).

Usage:

  1. new a inttny.Tools.Threads.Task entity
  2. registry your entity's event Run by using a System.Action delegate
  3. call inttny.Tools.Threads.ManagedThreadPool.AppendTask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant