MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / activeCount

Method activeCount

Libraries/Await/Await.cpp:2648–2659  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2646}
2647
2648size_t AwaitTaskRegistry::activeCount() const
2649{
2650 size_t count = 0;
2651 for (size_t idx = 0; idx < tasks.sizeInElements(); ++idx)
2652 {
2653 if (tasks[idx].isActive())
2654 {
2655 count++;
2656 }
2657 }
2658 return count;
2659}
2660
2661size_t AwaitTaskRegistry::completedCount() const
2662{

Callers 2

taskRegistryMethod · 0.80
cancelMethod · 0.80

Calls 1

isActiveMethod · 0.45

Tested by 1

taskRegistryMethod · 0.64