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

Allow models without a mutex #10

Open
sourcefrog opened this issue Sep 30, 2023 · 0 comments
Open

Allow models without a mutex #10

sourcefrog opened this issue Sep 30, 2023 · 0 comments

Comments

@sourcefrog
Copy link
Owner

Currently, Nutmeg always wraps the model in a mutex.

Some models don't need this, e.g. if they use atomics or otherwise do their own locking. It would be nice to have an option to not use the mutex.

Perhaps these models should have to be Send+Sync, but then conceivably Nutmeg could be used from just a single thread, in which case we wouldn't need that. So, perhaps we should just let those traits propagate to the view.

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