-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
QLockFile
instead of QLockedFile
#21557
base: master
Are you sure you want to change the base?
Conversation
@sakgoyal
|
Well, let's see how our CI behaves for an indication! |
because I believe that code that qt provides (and updates regularly) is going to be more secure/battle tested than a custom implementation
it compiles fine. and CI didnt complain either. but the logic has changed so I dont know what the effects of it are. (you no longer have the option to write-only or read-only lock) |
It would be insane to approve such changes when nobody knows whether it will break the app logic or not. Then what is the point of such PR? To be honest, I'm inclined to just reject it. |
It isn't "custom implementation". It was borrowed from Qt a long time ago. In fact, it was even used by Qt itself in QtCreator until recently. But now it looks like they are using PS. We could learn from their experience and borrow current implementation of |
where is it currently implemented? I could not find a reference to it anywhere. |
@xavier2k6 I was asking about the implementation for QtLocalPeer, not QLockFile. |
I know, I was only putting link there for quick reference.... |
This code seems weird to have as I believe it is based on qt4. I came across the built in qt version in the docs, but the interface is NOT the same.
Using the qt provided version would be better right?
or is the locking mode that necessary to the functionality?
you can also get the source here:
https://github.com/qt/qtbase/tree/dev/src/corelib/io
I could also just copy in the current qt version and add the locking modes myself. Let me know what is preferred.
This does seem to introduce breaking changes. I am not sure what effects this will have because I am not sure how to test the change