input-output-hk / input-output-hk/fs-sim

Use reader/writer locks for access to file handles

Open
#49 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
2
Forks
6
Avg merge
3d 22h
Merged PRs (30d)
1

Description

File handle access is currently controlled using an `MVar`, guaranteeing exclusive access to a file handle. However, this is unnecessarily restrictive: functions like `hGetSomeAt` can read from file handles without modifying the contents of the file or the current file offset.

Contributor guide

Open the contributing guide

Research direction

Locate the MVar that controls file-handle access and inspect hGetSomeAt to understand which operations are read-only. Done means read-only file-handle access can proceed through shared locks while operations that modify state remain exclusively locked; the issue does not name specific files or tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
operating-systems
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.