Skip to content
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

Fix writes out of order #606

Merged
merged 1 commit into from
Jan 21, 2019
Merged

Fix writes out of order #606

merged 1 commit into from
Jan 21, 2019

Conversation

JonasHallFnx
Copy link
Contributor

Continue to enqueue writes until queue is drained, to avoid that writes comes out of order when writes are triggered from both the event loop and other threads.

Solves issue #605

Continue to enqueue writes until queue is drained, to avoid that writes comes out of order when writes are triggered from both the event loop and other threads.

Solves issue ReactiveX#605
@JonasHallFnx
Copy link
Contributor Author

Any maintainers available for review? @jamesgorman2 ?

Copy link
Collaborator

@jamesgorman2 jamesgorman2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

There might still be a race around the first off event loop write (a write(inEL) concurrent with the first write(!inEL)), but that already exists and isn't introduced by this PR.

@TurboProgramming I'm approving for now, but can you can have think and I'll merge or hold off after I do the same and get feedback from you

@JonasHallFnx
Copy link
Contributor Author

@jamesgorman2 any chance we can get this merged?

@jamesgorman2 jamesgorman2 merged commit cfcf90b into ReactiveX:0.5.x Jan 21, 2019
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.

2 participants