-
Notifications
You must be signed in to change notification settings - Fork 40
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
Move lock methods to base class #23
Conversation
What is the purpose of the lock here? |
So that any driver can safely have multiple coroutines driving without running into each other just like the avalon and opb drivers already do. |
That's what I figured. Are they meant to be directly used by the user? If so why are the methods private (starting There is also |
True. We have a fork with this change and derived Driver are using these method (seemingly without issues). I'll take a closer look to see why it's private-ish. Separate question: why not use "__" for making methods private? |
In Python using |
Yeah, so I guess to elaborate on what I'm trying to do: I'd like to be able to have all drivers choose to acquire a lock like avalon and opb do in their read/write methods. I didn't put it in
And yes, sorry for the confusion. I have no intention of users using these methods, just derived |
I guess we don't have to worry about it at this point. It might somehow break people. |
I'll wait a bit to see if there are any other opinions and merge it in a couple days otherwise. |
Move generically useful lock methods into
Driver
base class.