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 cancellation to NIOThreadPool's async runIfActive #2679

Merged
merged 10 commits into from
Mar 25, 2024

Commits on Mar 12, 2024

  1. Add cancellation to NIOThreadPool's async runIfActive

    Motivation:
    
    To dedupe the thread pool from NIOFileSystem and NIOPosix, the one from
    NIOPosix needs to gain support for cancellation for its async
    `runIfActive` function.
    
    Modification:
    
    - Generate a work ID when submitting async work to the pool, add that ID
      to a set in the cancellation handler
    - Check the existence of the ID in the cancel set when dequeuing the
      work
    
    Result:
    
    Queued NIOThreadPool tasks can be cancelled before they are run.
    glbrntt committed Mar 12, 2024
    Configuration menu
    Copy the full SHA
    60e7e5b View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. fixup tests

    glbrntt committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    e7e7cf2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7eb18fa View commit details
    Browse the repository at this point in the history
  3. remove last ID

    glbrntt committed Mar 13, 2024
    Configuration menu
    Copy the full SHA
    9b7647b View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d2976fe View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    a64ac04 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    619147c View commit details
    Browse the repository at this point in the history

Commits on Mar 20, 2024

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

Commits on Mar 25, 2024

  1. Configuration menu
    Copy the full SHA
    db6d489 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1ba6779 View commit details
    Browse the repository at this point in the history