#include "Retry.hpp"
#include <algorithm>
-#if HAVE_EXECUTION
+#if HAVE_EXECUTION && HAVE_TBB
# include <execution>
#endif
#include <sys/wait.h>
bool Cluster::isStopped() {
return none_of(
-#if HAVE_EXECUTION
+#if HAVE_EXECUTION && HAVE_TBB
execution::par,
#endif
cluster.begin(), cluster.end(), [](Server &s) {
bool Cluster::isListening() const {
return all_of(
-#if HAVE_EXECUTION
+#if HAVE_EXECUTION && HAVE_TBB
execution::par,
#endif
cluster.begin(), cluster.end(), [](const Server &s) {
return false;
}
auto listening = all_of(
-#if HAVE_EXECUTION
+#if HAVE_EXECUTION && HAVE_TBB
execution::par,
#endif
cluster.begin(), cluster.end(), [](Server &s) {