Fixed windows deadlocks, performance is shit tho
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
#include <thread>
|
||||
#include <memory>
|
||||
|
||||
#include "sweepstore/utils/timing.h"
|
||||
|
||||
#define STALE_HEARTBEAT_THRESHOLD_MS 5000
|
||||
|
||||
enum SweepstoreTicketOperation : int;
|
||||
@@ -24,6 +26,7 @@ namespace SweepstoreConcurrency {
|
||||
void initialiseMaster(std::string filePath);
|
||||
|
||||
inline void initialiseMasterAsync(std::string filePath) {
|
||||
SWEEPSTORE_TIME_FUNCTION();
|
||||
std::thread([filePath]() {
|
||||
initialiseMaster(filePath);
|
||||
}).detach();
|
||||
|
||||
Reference in New Issue
Block a user