-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AtomicLinkedList::sweepOnce for a reversed single list sweep
Summary: reverseSweep's semantics are useful when you want an immediate snapshot of the current list, but having them LIFO as opposed to FIFO means code using this interface copies into a vector and calls `std::reverse` afterwards. We can skip all that if we include a `sweepOnce` method to the AtomicLinkedList. Reviewed By: yfeldblum Differential Revision: D63800706 fbshipit-source-id: da872ac23c599358c4e90dcdf267b2ba1b872ce3
- Loading branch information
1 parent
2aa85fc
commit 74b9fee
Showing
2 changed files
with
40 additions
and
0 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