jtulach commented on code in PR #9650:
URL: https://github.com/apache/netbeans/pull/9650#discussion_r4157190025
##########
ide/projectapi.nb/src/org/netbeans/modules/projectapi/nb/NbProjectManager.java:
##########
@@ -489,11 +513,28 @@ public void clearNonProjectCache() {
LoadStatus.NO_SUCH_PROJECT.wrap(),
LoadStatus.SOME_SUCH_PROJECT.wrap(),
}));
- // XXX remove everything too? but then e.g.
AntProjectFactorySingleton
- // will stay while its delegates are changed, which does no good
- // XXX should there be any way to signal that a particular
- // folder should be "reloaded" by a new factory?
}
+ MUTEX.postReadRequest(() -> {
Review Comment:
- it is not completely clear what kind of operations should be done under
`readAccess` and what under `writeAccess`
- for now I believe that: `readAccess` can create new projects, but
**cannot modify** existing
- with write access **modifications** are possible
- `readAccess` allows N-threads to have it
- `writeAccess` guarantees there is only 1-thread having it and no thread
having `readAccess`
- as such `writeAccess` is stronger and should be allowed to do whatever
`readAccess` can
- 027598fd2d3e thus takes in the provided test, fixes the `isValid` check
and relaxes the `assert`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists