about
12/03/2022
CppConcurrentFileAccess Repo
CppConcurrentFileAccess code

CppConcurrentFileAcess  Repository

Defines read and write retry wrappers for file streams

Quick Status Code functions correctly no known defects Demonstration code yes Documentation yes - needs more Test cases none, but planned Static library no, but planned Build requires C++17 option Planned design changes Refactor into library

1.0 Responsibilities

CppConcurrentFileAccess provides a small library for opening, using, and closing files in a concurrent user environment.

2.0 Implementation

Both readers and writers attempt to open standard file streams. Open may fail because another user has already opened the file. The opener tests open success, and if failed, it sleeps for a specified time and tries again. It will do that a specified number of times before declaring open failure. This retry facility should work well for a Mult-threaded File Server.

3.0 Build

CppConcurrentFileAccess was built with Visual Studio Community Edition - 2019, and tested on Windows 10.
  Next Prev Pages Sections About Keys