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

Better locking mechanism for file manager #1

Open
inelpandzic opened this issue Dec 10, 2024 · 0 comments
Open

Better locking mechanism for file manager #1

inelpandzic opened this issue Dec 10, 2024 · 0 comments

Comments

@inelpandzic
Copy link
Owner

Currently, there is only one mutex in the file manager that protects all opened files. That means that if multiple goroutines want to access different files, they will wait for the same lock, which does not make much sense.

At least, there should be a lock for each file.

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

No branches or pull requests

1 participant