|
I have fixed the sync issues as best I can even though I am not a huge fan of my solution. I think the whole sync strategy needs to be re-thought for 2.0. I'll write up something for the dev list when we reach that point.
Re: _whenExhaustedAction : this should be documented for later maintainers please.
Access to Latch fields need to be synch. regardless of whether the access is simultaneous or not - if one thread sets a field, another thread may not see the same value in the absence of synch. Re: Config - I thought the fields were used as constants, but on looking again they are used as defaults - so please ignore that comment. Re: _whenExhaustedAction : Already documented in-line
Re: Latch: Syncs added. |
||||||||||||||||||||||||||||||||||||||||||||||||||
For the use of Latch, I am happy (at the momentat least ) that the code is written in such a way that only one thread will ever be trying to access the latch at the same time. If you can see a code path where that isn't the case please add it here.
The Config class looks OK to me. Which fields were you worried about?