On Tue Sep 27 11:11:22 2022 +0000, Torge Matthies wrote:
I used `RtlWakeAddressAll` because I don't know that there will only ever be a single waiter. Maybe two threads call `_StructuredTaskCollection::_RunAndWait`, or we add a wait in the worker threads at some point. Is `RtlWakeAddressAll` less performant than `RtlWakeAddressSingle`?
I don't know if it's valid to run _RunAndWait concurrently. If no - RtlWakeAddressSingle will be sufficient. If yes - expected variable can't be computed once because this->finished may be zeroed by another _RunAndWait call.