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

feat(project): make project management thread safe #33

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

maximmaxim345
Copy link
Owner

This commit replaces uses of Rc and RefCell to Arc and Mutex respectively. This is by far not the best way to achieve thread safety, since acquiring the lock could be done on a per data section basis instead of a per project one.

This will be addressed with the rewrite to a CRDT based approach for storing state. This will also remove the countless uses of unwrap().

This commit replaces uses of Rc and RefCell to Arc and Mutex
respectively. This is by far not the best way to achieve thread safety,
since acquiring the lock could be done on a per data section basis
instead of a per project one.

This will be addressed with the rewrite to a CRDT based approach for
storing state. This will also remove the countless uses of unwrap().
This will assure that the library is indeed thread safe
@maximmaxim345 maximmaxim345 force-pushed the feat/thread-safe-project branch from a7d5549 to 25c1aa4 Compare September 6, 2024 09:37
@maximmaxim345 maximmaxim345 merged commit 8b7f1a9 into main Sep 6, 2024
10 checks passed
@maximmaxim345 maximmaxim345 deleted the feat/thread-safe-project branch September 6, 2024 09:55
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.

1 participant