Fixed windows deadlocks, performance is shit tho

This commit is contained in:
ImBenji
2025-12-11 17:15:55 +00:00
parent bec317745d
commit fc7297e0f8
12 changed files with 575 additions and 12 deletions

View File

@@ -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();