Skip to content

Conversation

@edolstra
Copy link
Member

@edolstra edolstra commented Nov 3, 2025

Motivation

This avoids a superfluous copy of the work item.

Also use C++23's std::move_only_function, as that allows (for instance) passing an std::unique_ptr to the work item. (removed since this doesn't work on macOS yet)

Context


Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

This avoids a superfluous copy of the work item.
@edolstra edolstra enabled auto-merge November 3, 2025 17:21
@edolstra edolstra added this pull request to the merge queue Nov 3, 2025
Merged via the queue into master with commit beace42 Nov 3, 2025
22 checks passed
@edolstra edolstra deleted the thread-pool-move branch November 3, 2025 18:10
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

Successfully merging this pull request may close these issues.

2 participants