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

The global lock can be replaced by self.lock in Master.execute #165

Open
sazima opened this issue Apr 9, 2022 · 0 comments
Open

The global lock can be replaced by self.lock in Master.execute #165

sazima opened this issue Apr 9, 2022 · 0 comments

Comments

@sazima
Copy link

sazima commented Apr 9, 2022

@threadsafe_function

In my project, I need to read more than a dozen PLCs and each Plc needs to read 60 address. When I read one PLC, it is not necessary for the other Plc to wait for lock.

In my test:
When use @threadsafe_function call execute cost more than 20 seconds every time . Use with self.lock: takes only cost less than 1 seconds

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