Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Effect.Ref thread-safe #3

Merged
merged 2 commits into from
Feb 14, 2024
Merged

Make Effect.Ref thread-safe #3

merged 2 commits into from
Feb 14, 2024

Conversation

f-f
Copy link
Contributor

@f-f f-f commented Feb 12, 2024

As per title, we make the Effect.Ref implementation thread-safe, by carrying around a mutex in each ref, and making every write exclusive on this mutex.

Tests were not running, so we re-enable them too.

We'll need to merge this before the CI in purescm/purescm#226 can pass.

refs/src/Effect/Ref.ss Outdated Show resolved Hide resolved
refs/src/Effect/Ref.ss Outdated Show resolved Hide resolved
@f-f f-f merged commit 9937583 into master Feb 14, 2024
1 check passed
@f-f f-f deleted the thread-safe-refs branch February 14, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants