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 the ability to customize thread spawning #636

Merged
merged 6 commits into from
Jun 5, 2019

Commits on May 8, 2019

  1. Add the ability to customize thread spawning

    As an alternative to `ThreadPoolBuilder::build()` and `build_global()`,
    the new `spawn()` and `spawn_global()` methods take a closure which will
    be responsible for spawning the actual threads. This is called with a
    `ThreadBuilder` argument that provides the thread index, name, and stack
    size, with the expectation to call its `run()` method in the new thread.
    
    The motivating use cases for this are:
    - experimental WASM threading, to be externally implemented.
    - scoped threads, like the new test using `scoped_tls`.
    cuviper committed May 8, 2019
    Configuration menu
    Copy the full SHA
    6410e79 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    58e109a View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    03578b2 View commit details
    Browse the repository at this point in the history

Commits on May 21, 2019

  1. Configuration menu
    Copy the full SHA
    01cdeb6 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2019

  1. Configuration menu
    Copy the full SHA
    7c4dcd9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    249ad3f View commit details
    Browse the repository at this point in the history