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

Add ways to throttle thread creation #7

Closed
wants to merge 1 commit into from

Commits on Mar 4, 2020

  1. Add ways to throttle thread creation

    This changes thread spawning to only spawn a single thread at a time. The `thread_wait_time` method allows you to specify a wait time before adding a thread to the pool which also delays spawning the next thread. The thread pool can now terminate before all worker threads have spawned. A `set_thread_target` method is added which allows you to tell the thread pool how many threads it should spawn. This thread target can change over time, but the thread pool will never remove threads once they are spawned.
    Zoxc committed Mar 4, 2020
    Configuration menu
    Copy the full SHA
    fc1279d View commit details
    Browse the repository at this point in the history