[libcxx-commits] [PATCH] D145183: [libc++] Implement `stop_token`
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 10 09:33:56 PST 2023
ldionne added inline comments.
================
Comment at: libcxx/include/__stop_token/stop_state.h:130
+ while (__cb_head_) {
+ auto __cb = __cb_head_;
+ __cb_head_ = __cb_head_->__next_;
----------------
Maybe we should look into extracting the intrusive linked-list related functionality into something reusable? Would that be doable, and if so would it make the code simpler?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145183/new/
https://reviews.llvm.org/D145183
More information about the libcxx-commits
mailing list