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

when a variable has a getter or a setter, accessing it blocks the entire tokio executor #175

Open
lovasoa opened this issue Mar 16, 2022 · 0 comments

Comments

@lovasoa
Copy link
Contributor

lovasoa commented Mar 16, 2022

This is related to but different from #166 : The opcua-server api expects the user to wrap their getters and setters in an std::sync::Mutex (https://docs.rs/opcua-server/0.8.1/opcua_server/address_space/variable/struct.Variable.html#method.set_value_setter), which means that two clients accessing the same variable at the same time will lock the entire tokio executor. Is their a reason to have a synchonous instead of an asynchronous mutex here ?

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