[PATCH] D48240: Try again to implement a FIFO task queue
Zachary Turner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 19 21:02:52 PDT 2018
zturner updated this revision to Diff 152018.
zturner added a comment.
This gets the `LLVM_ENABLE_THREADS=0` case working. It does so by taking advantage of pointer invalidation properties of `std::deque`, so I can save off a pointer to the newly inserted element and just run tasks until the pointers match.
https://reviews.llvm.org/D48240
Files:
llvm/include/llvm/Support/TaskQueue.h
llvm/lib/Support/CMakeLists.txt
llvm/lib/Support/TaskQueue.cpp
llvm/unittests/Support/CMakeLists.txt
llvm/unittests/Support/TaskQueueTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48240.152018.patch
Type: text/x-patch
Size: 10666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180620/656013fd/attachment.bin>
More information about the llvm-commits
mailing list