Skip to content

EntropyEngine::Core::IO::IFileSystemBackend::AcquireWriteScopeResult

EntropyEngine::Core::IO::IFileSystemBackend::AcquireWriteScopeResult

Section titled “EntropyEngine::Core::IO::IFileSystemBackend::AcquireWriteScopeResult”

Backend-specific primitive for write serialization. More…

#include <IFileSystemBackend.h>

Name
enum classStatus { TimedOut, NotSupported, Error, Busy, Acquired}
Name
std::unique_ptr< void, void(*)(void *)>token
std::chrono::millisecondssuggestedBackoff
enum EntropyEngine::Core::IO::IFileSystemBackend::AcquireWriteScopeResult::Statusstatus
std::stringmessage
std::error_codeerrorCode
struct EntropyEngine::Core::IO::IFileSystemBackend::AcquireWriteScopeResult;

Backend-specific primitive for write serialization.

VFS applies global policy based on this result. Status meanings:

  • Acquired: exclusive scope obtained; hold token until write completes.
  • Busy: another writer holds the path; try again after suggestedBackoff.
  • TimedOut: bounded attempt expired; no scope acquired.
  • NotSupported: backend does not implement scoping.
  • Error: backend-specific failure (include errorCode/message).
EnumeratorValueDescription
TimedOut
NotSupported
Error
Busy
Acquired
std::unique_ptr< void, void(*)(void *)> token {nullptr, [](void*) {}};
std::chrono::milliseconds suggestedBackoff {0};
enum EntropyEngine::Core::IO::IFileSystemBackend::AcquireWriteScopeResult::Status status = Status::NotSupported;
std::string message;
std::error_code errorCode {};

Updated on 2026-01-26 at 17:14:35 -0500