| 2792 | } |
| 2793 | if (registry.activeCount() == 0) |
| 2794 | { |
| 2795 | finish(operationResult); |
| 2796 | } |
| 2797 | return Result(true); |
| 2798 | } |
| 2799 | |
| 2800 | void AwaitTaskRegistryWaitAllAwaiter::onTaskCompleted(void* object) |
| 2801 | { |
| 2802 | static_cast<AwaitTaskRegistryWaitAllAwaiter*>(object)->onTaskCompleted(); |
| 2803 | } |
| 2804 | |
| 2805 | void AwaitTaskRegistryWaitAllAwaiter::onTaskCompleted() |
| 2806 | { |
| 2807 | if (finished) |
| 2808 | { |
| 2809 | return; |
| 2810 | } |
| 2811 | |
| 2812 | completedTasks++; |
| 2813 | if (completedTasks == totalTasks) |