#include <mp-coro/when_all.h>
Definition at line 40 of file when_all.h.
◆ when_all_sync() [1/2]
◆ when_all_sync() [2/2]
◆ set_continuation()
bool set_continuation |
( |
std::coroutine_handle<> |
cont | ) |
|
|
inline |
- Return values
-
false | when a continuation is being attached when all work is already done and the current coroutine should be resumed right away via Symmetric Control Transfer. |
Definition at line 53 of file when_all.h.
◆ notify_awaitable_completed()
void notify_awaitable_completed |
( |
| ) |
|
|
inline |
On completion of each task a counter is being decremented and if the continuation is already attached (a counter was decremented by set_continuation() it is being resumed.
Definition at line 61 of file when_all.h.
◆ is_ready()
- Return values
-
true | if the continuation is already assigned which means that someone already awaited for the awaitable completion. |
Definition at line 68 of file when_all.h.
◆ counter_
std::atomic<std::size_t> counter_ |
|
private |
◆ continuation_
std::coroutine_handle continuation_ |
|
private |
The documentation for this class was generated from the following file: