Fixed windows deadlocks, performance is shit tho
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user