-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scheduler: Support moved tast captures / arguments
Replace the internal use of `std::function` with `std::packaged_task`. `std::function` requires that the wrapped function is CopyConstructable, where as a `std::packaged_task` does not. This allows the tasks to hold `std::move`'d values. This is an API / ABI breaking change, but I believe few people would be copying `marl::Task`s.
- Loading branch information
1 parent
9c689c9
commit a2ca890
Showing
2 changed files
with
43 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters