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

[Ruby 2.3] Concurrency improvements to Queue/SizedQueue #3553

Merged
merged 1 commit into from
Dec 28, 2015

Conversation

thedarkone
Copy link
Contributor

Context:

The implementation is now based on Doug Lea’s LinkedBlockingQueue.

Concurrency wise, this is now dual locked (head/tail) linked queue,
since Ruby std lib queues have blocking operations a completely
lock-free queue is not practical endeavor.

The implementation is now based on Doug Lea’s LinkedBlockingQueue.

Concurrency wise, this is now dual locked (head/tail) linked queue,
since Ruby std lib queues have blocking operations a completely
lock-free queue is not practical endeavor.
@headius
Copy link
Member

headius commented Dec 28, 2015

Very nice! I had similar code at various times in the past week and kept getting pulled away. I also based mine on Doug's LinkedBlockingQueue. Will merge your impl over.

headius added a commit that referenced this pull request Dec 28, 2015
[Ruby 2.3] Concurrency improvements to Queue/SizedQueue
@headius headius merged commit 908512a into jruby:ruby-2.3 Dec 28, 2015
@headius headius mentioned this pull request Jan 19, 2016
58 tasks
@enebo enebo modified the milestone: Non-Release May 25, 2016
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.

None yet

3 participants