marmelab/phpcr-browser — pull request #39 by RobinBressan (2014-05-13 21:56:54+00:00)
Title: [WIP] Add a mutex in RouteParametersConverter

This PR aims to synchronize all calls to the API. Indeed at each load there are two requests on the API for the current node (the tree view and the property view). That means that the cache strategy is not working well.
But to fix it, we have to ensure that a call to getCurrentNode is not completed until the previous one is done (to let the cache to be filled).
The method getCurrentNode relies on getRepository so I had a mutex in this last one.

- [x] Add a mutex in RouteParametersConverter::getCurrentRepository
- [ ] Fix cache strategy