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

@@ -1,4 +1,5 @@
#include "sweepstore/utils/file_handle.h"
#include "sweepstore/utils/timing.h"
// Constructor - just stores path and mode, actual stream is created per-thread
SweepstoreFileHandle::SweepstoreFileHandle(const std::string& p, std::ios::openmode mode)
@@ -160,6 +161,7 @@ void SweepstoreFileHandle::readBytes(char* buffer, std::streamsize size) {
// writeBytes
void SweepstoreFileHandle::writeBytes(const char* buffer, std::streamsize size) {
SWEEPSTORE_TIME_FUNCTION();
#ifdef WITH_UNREAL
unrealHandle->Write(reinterpret_cast<const uint8*>(buffer), size);
unrealHandle->Flush(); // Unreal requires explicit flush