Poll the signal from one thread instead of all

Tá an tiomantas seo le fáil i:
Brandon Potter
2024-09-27 15:17:57 -05:00
tuismitheoir db221b022a
tiomantas 0659f8d93c
+5 -2
Féach ar an gComhad
@@ -78,9 +78,12 @@ class Notifier {
}
}
while (detail::atomic::load<uint32_t, scope>(&signal_, orders_) != done) {
;
if (executor) {
while (detail::atomic::load<uint32_t, scope>(&signal_, orders_) != done) {
;
}
}
__syncthreads();
}
private: