diff --git a/cpp/src/Public/sweepstore/concurrency.h b/cpp/src/Public/sweepstore/concurrency.h index 8305818..4baa373 100644 --- a/cpp/src/Public/sweepstore/concurrency.h +++ b/cpp/src/Public/sweepstore/concurrency.h @@ -2,7 +2,7 @@ #include #include -#include +#include #include #define STALE_HEARTBEAT_THRESHOLD_MS 5000 @@ -22,7 +22,7 @@ namespace SweepstoreConcurrency { void initialiseMaster(std::string filePath); inline void initialiseMasterAsync(std::string filePath) { - std::thread([&filePath]() { + std::thread([filePath]() { initialiseMaster(filePath); }).detach(); } diff --git a/cpp/src/Public/sweepstore/utils/helpers.h b/cpp/src/Public/sweepstore/utils/helpers.h index 851b4ee..0624a0d 100644 --- a/cpp/src/Public/sweepstore/utils/helpers.h +++ b/cpp/src/Public/sweepstore/utils/helpers.h @@ -9,6 +9,8 @@ #include #include #include +#include +#include // Toggleable debug printing via preprocessor #ifndef SWEEPSTORE_DEBUG