Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Correct synchronization guard in groupByUntil#877

Merged
benjchristensen merged 1 commit intoReactiveX:masterfrom
pyrtsa:patch-1
Feb 14, 2014
Merged

Correct synchronization guard in groupByUntil#877
benjchristensen merged 1 commit intoReactiveX:masterfrom
pyrtsa:patch-1

Conversation

@pyrtsa
Copy link
Contributor

@pyrtsa pyrtsa commented Feb 14, 2014

Can't see how synchronized (key) { ... } could have been correct here; key will hardly ever be the same instance for different invocations of keySelector, and the comment on line 73 clearly states gate to be the guard for map.

Can't see how `synchronized (key) { ... }` could have been correct here; `key` will hardly ever be the same instance for different invocations of `keySelector`, and the comment on line 73 clearly states `gate` to be the guard for `map`.
@akarnokd
Copy link
Member

Nice catch.

@cloudbees-pull-request-builder

RxJava-pull-requests #809 SUCCESS
This pull request looks good

benjchristensen added a commit that referenced this pull request Feb 14, 2014
Correct synchronization guard in groupByUntil
@benjchristensen benjchristensen merged commit 2d921d1 into ReactiveX:master Feb 14, 2014
@pyrtsa pyrtsa deleted the patch-1 branch February 14, 2014 20:53
jihoonson pushed a commit to jihoonson/RxJava that referenced this pull request Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants