This is an archive of the discontinued LLVM Phabricator instance.

[Support] Use unique_function for ThreadPool.
AbandonedPublic

Authored by lhames on May 9 2020, 10:04 PM.

Details

Reviewers
mehdi_amini
Summary

This allows move-only function objects (including lambdas that capture move-only
objects) to be passed to a ThreadPool instance for execution.

Diff Detail

Event Timeline

lhames created this revision.May 9 2020, 10:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 9 2020, 10:04 PM
Herald added a subscriber: ributzka. · View Herald Transcript
mehdi_amini accepted this revision.May 10 2020, 12:47 AM
This revision is now accepted and ready to land.May 10 2020, 12:47 AM
lhames abandoned this revision.May 8 2021, 8:05 PM

This blew up on the builders. The MSVC implementation of packaged_task does not support unique_function (at least at the moment).