[PATCH] D48306: Make TaskQueue support tasks that return values

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 18 17:23:44 PDT 2018


zturner created this revision.
zturner added reviewers: labath, inglorion, chandlerc.
Herald added a subscriber: hiraditya.

This depends on https://reviews.llvm.org/D48240.  After this patch, you will be able to do somethign like

  shared_future<int> F = TQ.async([] { return 42; });
  shared_future<Error> F2 = TQ.async([] { return someFunctionThatMightFail(); });




https://reviews.llvm.org/D48306

Files:
  llvm/include/llvm/Support/TaskQueue.h
  llvm/lib/Support/TaskQueue.cpp
  llvm/unittests/Support/TaskQueueTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48306.151832.patch
Type: text/x-patch
Size: 8210 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180619/deb2e8fe/attachment.bin>


More information about the llvm-commits mailing list