Skip to content

Commit 7909638

Browse files
committed
mux.co_await becomes [[nodiscard]]
1 parent 10164cb commit 7909638

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

include/tmc/mux_many.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class mux_many : private tmc::detail::AwaitTagNoGroupCoAwaitLvalue {
319319
/// each consumed (or forked) slot index will be returned exactly once per
320320
/// submission. When no submitted results remain, the index returned will be
321321
/// equal to the value of `end()`.
322-
TMC_AWAIT_RESUME inline size_t await_resume() noexcept {
322+
[[nodiscard]] inline size_t await_resume() noexcept {
323323
auto slot = tmc::detail::result_each_await_resume(remaining_count, sync_flags);
324324
if (slot != end()) {
325325
active_slots &= ~(TMC_ONE_BIT << slot);

include/tmc/mux_tuple.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ class mux_tuple : private tmc::detail::AwaitTagNoGroupCoAwaitLvalue {
210210
/// order, but each consumed (or forked) slot index will be returned
211211
/// exactly once per submission. When no submitted results remain, the index
212212
/// returned will be equal to the value of `end()`.
213-
TMC_AWAIT_RESUME inline size_t await_resume() noexcept {
213+
[[nodiscard]] inline size_t await_resume() noexcept {
214214
auto slot = tmc::detail::result_each_await_resume(remaining_count, sync_flags);
215215
if (slot != end()) {
216216
active_slots &= ~(TMC_ONE_BIT << slot);

0 commit comments

Comments
 (0)