Skip to content

Implemented 'Synchronize' with 'lock' #409

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

Merged
merged 1 commit into from
Sep 25, 2013

Conversation

zsxwing
Copy link
Member

@zsxwing zsxwing commented Sep 25, 2013

Hi,

I implemented #84 to support that sending a lock to the synchronize operator.

I also found that there was a issue that testMultiThreadedWithNPE and testMultiThreadedWithNPEinMiddle might fail in some special situation. When onError is invoked before any onNext, the last statement assertEquals(1, busyObserver.maxConcurrentThreads.get()); in these methods will fail. I also fixed this issue in the pull request.

@cloudbees-pull-request-builder

RxJava-pull-requests #313 ABORTED

@benjchristensen
Copy link
Member

Looks good, thank you!

benjchristensen added a commit that referenced this pull request Sep 25, 2013
Implemented 'Synchronize' with 'lock'
@benjchristensen benjchristensen merged commit 26f5a66 into ReactiveX:master Sep 25, 2013
@zsxwing zsxwing deleted the synchronize-lock branch September 26, 2013 02:07
rickbw pushed a commit to rickbw/RxJava that referenced this pull request Jan 9, 2014
Implemented 'Synchronize' with 'lock'
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.

3 participants