-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
gROOTMutex -> RWLock #596
gROOTMutex -> RWLock #596
Conversation
Starting build on |
@etejedor Could you take a look? |
core/base/inc/TPluginManager.h
Outdated
@@ -155,7 +155,7 @@ friend class TPluginManager; | |||
// resource ... and both SetParams and Execute ends up taking the lock | |||
// individually anyway ... | |||
|
|||
R__LOCKGUARD2(gInterpreterMutex); | |||
R__LOCKGUARD(gInterpreterMutex); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we also apply the same fix to all occurrences of R__LOCKGUARD_IMT2 and replace them by R__LOCKGUARD_IMT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It depends on whether the mutex guard is guaranteed to be initialized or not ....
Starting build on |
Build failed on ubuntu14/native. Failing tests: |
Build failed on mac1012/native. Failing tests: |
Build failed on slc6/gcc62. Failing tests: |
Build failed on slc6/gcc49. Failing tests: |
Build failed on centos7/gcc49. Failing tests: |
If my two minor comments are addressed this pr for me is ready to go. |
@dpiparo I don't see the comments. Besides, after further development, I found the need also make the lock re-entrant from Read to Write lock making it relatively heavy so I am planning to actually separate the simple RW lock from the re-entrant one. So once I find (and address) the comments, I will close this. |
…actual re-entrancy
…ath. well used for every call to RecursiveRemove
@phsft-bot build please. |
Starting build on |
1 similar comment
Starting build on |
Build failed on ubuntu14/native. Warnings:
Failing tests: |
Build failed on slc6/gcc62. Warnings:
Failing tests: |
Build failed on slc6/gcc49. Warnings:
Failing tests: |
Build failed on mac1012/native. Warnings:
Failing tests: |
One pending question (beside whether this is performant enough) is whether to keep the old TRWSpinLock and the new TRWSpinLock (Reentrant) or to have them (as in this MR) the same.